Team:UCLA/Template
From 2013.igem.org
(Difference between revisions)
Dewalgupta (Talk | contribs) |
Michaelc1618 (Talk | contribs) |
||
(5 intermediate revisions not shown) | |||
Line 24: | Line 24: | ||
}); | }); | ||
}); | }); | ||
+ | }); | ||
+ | |||
+ | $(function() { | ||
+ | $('a[href*=#]:not([href=#])').click(function() { | ||
+ | if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') | ||
+ | || location.hostname == this.hostname) { | ||
+ | |||
+ | var target = $(this.hash); | ||
+ | target = target.length ? target : $('[name=' + this.hash.slice(1) +']'); | ||
+ | if (target.length) { | ||
+ | $('html,body').animate({ | ||
+ | scrollTop: target.offset().top | ||
+ | }, 1000); | ||
+ | return false; | ||
+ | } | ||
+ | } | ||
+ | }); | ||
}); | }); | ||
</script> | </script> | ||
Line 42: | Line 59: | ||
<style> | <style> | ||
#nav { font-family: "Raleway", serif; font-size: 12px; color: white;} | #nav { font-family: "Raleway", serif; font-size: 12px; color: white;} | ||
- | #nav { background-color: #0070B0; width: | + | #nav { background-color: #0070B0; width: 1150px; list-style: none; } |
- | #nav { float: left; margin: 0px 0px auto - | + | #nav { float: left; margin: 0px 0px auto -100px; z-index: 5; } |
#nav li { float: left; margin: 0px 25px 0px -5px; position:relative; } | #nav li { float: left; margin: 0px 25px 0px -5px; position:relative; } | ||
#nav a { display: block; padding: 5px 15px; text-decoration: none; color: white; border-style: none; } | #nav a { display: block; padding: 5px 15px; text-decoration: none; color: white; border-style: none; } | ||
#nav a:hover { color: #D6D615; } | #nav a:hover { color: #D6D615; } | ||
+ | #nav {border-radius:8px; border: 2px solid white; } | ||
</style> | </style> | ||
<ul id="nav"> | <ul id="nav"> | ||
- | <li style="margin-left: | + | <li style="margin-left: 30px;"><a href="https://2013.igem.org/Team:UCLA">HOME</a> |
</li> | </li> | ||
<li><a href="/Team:UCLA/Project">PROJECT</a></li> | <li><a href="/Team:UCLA/Project">PROJECT</a></li> | ||
Line 57: | Line 75: | ||
<li><a href="/Team:UCLA/Modeling">MODELING</a></li> | <li><a href="/Team:UCLA/Modeling">MODELING</a></li> | ||
<li><a href="/Team:UCLA/HumanPractices">HUMAN PRACTICES</a></li> | <li><a href="/Team:UCLA/HumanPractices">HUMAN PRACTICES</a></li> | ||
- | <li><a href="/Team:UCLA/Notebook">NOTEBOOK</a></li> | + | <li><a href="/Team:UCLA/Notebook/Biobrick">NOTEBOOK</a></li> |
<li><a href="/Team:UCLA/Safety">SAFETY</a></li> | <li><a href="/Team:UCLA/Safety">SAFETY</a></li> | ||
+ | <li><a href="/Team:UCLA/Attributions">ATTRIBUTIONS</a></li> | ||
+ | <li><a href="https://igem.org/2013_Judging_Form?id=1176">JUDGING</a></li> | ||
</ul> | </ul> | ||
Latest revision as of 23:26, 27 September 2013