Skip to content
Snippets Groups Projects
Commit bb34cddc authored by HouTeng Chan's avatar HouTeng Chan
Browse files

Update file attributions.html

parent 569194b0
No related branches found
No related tags found
No related merge requests found
......@@ -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>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment