Commit 93a7780c authored by Lukas Burgey's avatar Lukas Burgey

Fix a bug with the js loading

parent 0fabd752
......@@ -75,5 +75,7 @@ $(document).keydown(function(e) {
});
// link to here
var link = $("li a[href='" + $(location)[0].pathname+ "']")
.parents().filter(".nav>li").addClass("active");
$(window).on("load", function() {
var link = $("li a[href='" + $(location)[0].pathname+ "']")
.parents().filter(".nav>li").addClass("active");
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment