Fix anchor tags

This commit is contained in:
Sander Ferdinand 2018-07-02 23:37:42 +02:00
parent 13d00be0e1
commit eb03b8a7cb
2 changed files with 7 additions and 1 deletions

View File

@ -10,3 +10,9 @@ function hideShow(element_id) {
x.style.display = "none";
}
}
function fix_anchors(){
if(window.location.hash) {
scrollBy(0, -150)
}
}

View File

@ -54,7 +54,7 @@
<script src="/static/js/bootstrap.min.js"></script>
</head>
<body>
<body onload="fix_anchors();">
{% include 'navbar.html' %}