Team:Aalto-Helsinki/sidebar

From 2014.igem.org

(Difference between revisions)
Line 5: Line 5:
<ul class="sidebar-nav">
<ul class="sidebar-nav">
<li>
<li>
-
<a href="https://2014.igem.org/Team:Aalto-Helsinki">
+
<a class="home" href="https://2014.igem.org/Team:Aalto-Helsinki">
Home  
Home  
</a>
</a>
Line 44: Line 44:
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:eq(/Team:Aalto-Helsinki)').addClass('active');
+
} else $('#sidebar-wrapper a.home').addClass('active');
console.log(location.pathname);
console.log(location.pathname);
});
});
</script>
</script>
</html>
</html>

Revision as of 12:06, 12 June 2014