Team:Aalto-Helsinki/sidebar
From 2014.igem.org
(Difference between revisions)
Vaakapallo (Talk | contribs) |
Vaakapallo (Talk | contribs) |
||
Line 129: | Line 129: | ||
<script> | <script> | ||
$(document).ready(function() { | $(document).ready(function() { | ||
- | |||
- | |||
- | |||
if(location.pathname != "/Team:Aalto-Helsinki") { | if(location.pathname != "/Team:Aalto-Helsinki") { | ||
$('#sidebar-wrapper a[href^="https://2014.igem.org' + location.pathname + '"]').addClass('active'); | $('#sidebar-wrapper a[href^="https://2014.igem.org' + location.pathname + '"]').addClass('active'); | ||
} else $('#sidebar-wrapper a.home').addClass('active'); | } else $('#sidebar-wrapper a.home').addClass('active'); | ||
+ | |||
+ | $('.sidebar-nav li ul li').hide(); | ||
+ | console.log($('.sidebar-nav ul li a.active')); | ||
+ | $('.sidebar-nav li a .active').siblings.show(); | ||
}); | }); | ||
</script> | </script> | ||
</html> | </html> |
Revision as of 08:53, 18 June 2014