Line 176: | Line 176: | ||
<script> | <script> | ||
window.onscroll = function() {myFunction()}; | window.onscroll = function() {myFunction()}; | ||
− | + | ||
− | + | ||
function myFunction() { | function myFunction() { | ||
var winScroll = document.body.scrollTop || document.documentElement.scrollTop; | var winScroll = document.body.scrollTop || document.documentElement.scrollTop; | ||
Line 184: | Line 183: | ||
document.getElementById("myBar").style.width = scrolled + "%"; | document.getElementById("myBar").style.width = scrolled + "%"; | ||
}; | }; | ||
− | |||
</script> | </script> |
Revision as of 03:29, 31 August 2019