From eb03b8a7cb62186d2fc1648e0b2410249913f883 Mon Sep 17 00:00:00 2001 From: Sander Ferdinand Date: Mon, 2 Jul 2018 23:37:42 +0200 Subject: [PATCH] Fix anchor tags --- wowfunding/static/js/app.js | 6 ++++++ wowfunding/templates/base.html | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/wowfunding/static/js/app.js b/wowfunding/static/js/app.js index c982c10..7982027 100644 --- a/wowfunding/static/js/app.js +++ b/wowfunding/static/js/app.js @@ -10,3 +10,9 @@ function hideShow(element_id) { x.style.display = "none"; } } + +function fix_anchors(){ + if(window.location.hash) { + scrollBy(0, -150) + } +} \ No newline at end of file diff --git a/wowfunding/templates/base.html b/wowfunding/templates/base.html index e8bca72..0110a1d 100644 --- a/wowfunding/templates/base.html +++ b/wowfunding/templates/base.html @@ -54,7 +54,7 @@ - + {% include 'navbar.html' %}