Team:Aalto-Helsinki/sidebar

From 2014.igem.org

(Difference between revisions)
Line 43: Line 43:
$(document).ready(function() {
$(document).ready(function() {
if(location.pathname != "/") {
if(location.pathname != "/") {
-
$('#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(0)').addClass('active');
console.log(location.pathname);
console.log(location.pathname);

Revision as of 11:56, 12 June 2014