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

Fix a bug with the js loading

parent 0fabd752
...@@ -75,5 +75,7 @@ $(document).keydown(function(e) { ...@@ -75,5 +75,7 @@ $(document).keydown(function(e) {
}); });
// link to here // link to here
var link = $("li a[href='" + $(location)[0].pathname+ "']") $(window).on("load", function() {
.parents().filter(".nav>li").addClass("active"); 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