Team:Aalto-Helsinki/sidebar

From 2014.igem.org

(Difference between revisions)
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(0)').addClass('active');
+
} else $('#sidebar-wrapper a:eq(/Team:Aalto-Helsinki)').addClass('active');
console.log(location.pathname);
console.log(location.pathname);
});
});
</script>
</script>
</html>
</html>

Revision as of 12:04, 12 June 2014