diff --git a/wiki/pages/attributions.html b/wiki/pages/attributions.html index 46c46658c5e362b1592f6af898dd39534b92888c..56a4ebe377e40d2633d6e35cf4e6c4a6237d4513 100644 --- a/wiki/pages/attributions.html +++ b/wiki/pages/attributions.html @@ -59,9 +59,8 @@ <li><a href="#topic3">Topic3</a></li> <li><a href="#topic4"">Topic4</a></li> </ul> - <div class="scroll-progress"></div> </div> - + <div class="scroll-progress"></div> <div class="row mt-4"> <div class="col-lg-12"> <h2 id="description"> @@ -123,10 +122,10 @@ {% endblock %} <script> - document.addEventListener("scroll", function() { - var winScroll = document.body.scrollTop || document.documentElement.scrollTop; - var height = document.documentElement.scrollHeight - document.documentElement.clientHeight; - var scrolled = (winScroll / height) * 100; - document.querySelector('.scroll-progress').style.height = scrolled + "%"; - }); - </script> +document.addEventListener("scroll", function() { + var winScroll = document.body.scrollTop || document.documentElement.scrollTop; + var height = document.documentElement.scrollHeight - document.documentElement.clientHeight; + var scrolled = (winScroll / height) * 100; + document.querySelector('.scroll-progress').style.height = scrolled + "%"; +}); +</script>