Team:Aalto-Helsinki/sidebar

From 2014.igem.org

(Difference between revisions)
Line 45: Line 45:
$('#sidebar-wrapper a[href^="/' + location.pathname.split("/")[1] + '"]').addClass('active');
$('#sidebar-wrapper a[href^="/' + location.pathname.split("/")[1] + '"]').addClass('active');
} else $('#sidebar-wrapper a:eq(0)').addClass('active');
} else $('#sidebar-wrapper a:eq(0)').addClass('active');
-
console.log(location.pathname.split("/")[2]);
+
console.log(location.pathname);
});
});
</script>
</script>
</html>
</html>

Revision as of 11:53, 12 June 2014