(10 intermediate revisions by 2 users not shown) | |||
Line 81: | Line 81: | ||
-o-transition: all 0.3s ease-in; | -o-transition: all 0.3s ease-in; | ||
transition: all 0.3s ease-in; | transition: all 0.3s ease-in; | ||
+ | } | ||
+ | |||
+ | .navbar.landingpage { | ||
+ | position: fixed; | ||
+ | top: 16px; | ||
} | } | ||
Line 90: | Line 95: | ||
.top-fixed { | .top-fixed { | ||
position: fixed; | position: fixed; | ||
− | top: | + | top: 16px; |
} | } | ||
</style> | </style> | ||
− | <div class="navbar"> | + | <div class="navbar </html>{{{extra-class}}}<html>"> |
<div class="mobile-toggle"> | <div class="mobile-toggle"> | ||
<img src="https://static.igem.org/mediawiki/2016/c/c9/T--TU_Darmstadt--zahnrad.png" | <img src="https://static.igem.org/mediawiki/2016/c/c9/T--TU_Darmstadt--zahnrad.png" | ||
Line 101: | Line 106: | ||
<ul id="slick-menu"> | <ul id="slick-menu"> | ||
<li ><a href="https://2016.igem.org/Team:TU_Darmstadt/Achievements">Achievements</a></li> | <li ><a href="https://2016.igem.org/Team:TU_Darmstadt/Achievements">Achievements</a></li> | ||
− | <li ><a href="https://2016.igem.org/Team:TU_Darmstadt/Lab"> | + | <li ><a href="https://2016.igem.org/Team:TU_Darmstadt/Lab">Wet Lab</a></li> |
− | <li ><a href="https://2016.igem.org/Team:TU_Darmstadt/Parts">Parts | + | <li ><a href="https://2016.igem.org/Team:TU_Darmstadt/Parts">Parts</a></li> |
− | + | ||
<li ><a href="https://2016.igem.org/Team:TU_Darmstadt/Hardware">Robotics</a></li> | <li ><a href="https://2016.igem.org/Team:TU_Darmstadt/Hardware">Robotics</a></li> | ||
<li ><a href="https://2016.igem.org/Team:TU_Darmstadt/Model">Modeling</a></li> | <li ><a href="https://2016.igem.org/Team:TU_Darmstadt/Model">Modeling</a></li> | ||
Line 109: | Line 113: | ||
<li ><a href="https://2016.igem.org/Team:TU_Darmstadt/Collaborations">Collaborations</a></li> | <li ><a href="https://2016.igem.org/Team:TU_Darmstadt/Collaborations">Collaborations</a></li> | ||
<li ><a href="https://2016.igem.org/Team:TU_Darmstadt/Notebook">Notebook</a></li> | <li ><a href="https://2016.igem.org/Team:TU_Darmstadt/Notebook">Notebook</a></li> | ||
+ | <li ><a href="https://2016.igem.org/Team:TU_Darmstadt/Results">Results</a></li> | ||
<li ><a href="https://2016.igem.org/Team:TU_Darmstadt/Team">Team</a></li> | <li ><a href="https://2016.igem.org/Team:TU_Darmstadt/Team">Team</a></li> | ||
</ul> | </ul> | ||
Line 136: | Line 141: | ||
$(function(){ | $(function(){ | ||
$('#slick-menu a').each(function() { | $('#slick-menu a').each(function() { | ||
− | if ($(this).prop('href') | + | if ( (window.location.href).indexOf($(this).prop('href')) > -1) { |
$(this).addClass('current'); | $(this).addClass('current'); | ||
} | } | ||
}); | }); | ||
+ | }); | ||
+ | </script> | ||
+ | |||
+ | <script> | ||
+ | $(function(){ | ||
+ | if( window.location.href == 'https://2016.igem.org/Team:TU_Darmstadt') { | ||
+ | $('navbar').addClass('navbar-landingpage-fixed'); | ||
+ | } | ||
}); | }); | ||
</script> | </script> | ||
</html> | </html> |
Latest revision as of 16:01, 17 October 2016