Team:Aalto-Helsinki/sidebar
From 2014.igem.org
(Difference between revisions)
Vaakapallo (Talk | contribs) |
Vaakapallo (Talk | contribs) |
||
Line 43: | Line 43: | ||
$(document).ready(function() { | $(document).ready(function() { | ||
if(location.pathname != "/") { | if(location.pathname != "/") { | ||
- | $('#sidebar-wrapper a[href^="https://2014.igem.org | + | $('#sidebar-wrapper a[href^="https://2014.igem.org' + location.pathname + '"]').addClass('active'); |
} else $('#sidebar-wrapper a:eq(0)').addClass('active'); | } else $('#sidebar-wrapper a:eq(0)').addClass('active'); | ||
console.log(location.pathname); | console.log(location.pathname); |
Revision as of 11:56, 12 June 2014