Fix anchor tags
This commit is contained in:
parent
13d00be0e1
commit
eb03b8a7cb
|
@ -10,3 +10,9 @@ function hideShow(element_id) {
|
|||
x.style.display = "none";
|
||||
}
|
||||
}
|
||||
|
||||
function fix_anchors(){
|
||||
if(window.location.hash) {
|
||||
scrollBy(0, -150)
|
||||
}
|
||||
}
|
|
@ -54,7 +54,7 @@
|
|||
<script src="/static/js/bootstrap.min.js"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<body onload="fix_anchors();">
|
||||
|
||||
{% include 'navbar.html' %}
|
||||
|
||||
|
|
Loading…
Reference in New Issue