Difference between revisions of "Template:CSMU Taiwan/footer"

Line 80: Line 80:
 
         <img class="bar--sm bar-1 hidden-md hidden-lg bg--light" src="https://static.igem.org/mediawiki/2019/3/3f/T--CSMU_Taiwan--footer0.png" alt="image" style="margin-bottom: 0em !important;margin-top: 0em;" width: 100%;">
 
         <img class="bar--sm bar-1 hidden-md hidden-lg bg--light" src="https://static.igem.org/mediawiki/2019/3/3f/T--CSMU_Taiwan--footer0.png" alt="image" style="margin-bottom: 0em !important;margin-top: 0em;" width: 100%;">
 
     </div>
 
     </div>
    <script>
 
    // When the user scrolls the page, execute myFunction
 
    window.onscroll = function() { myFunction() };
 
  
    function myFunction() {
 
        var winScroll = document.body.scrollTop || document.documentElement.scrollTop;
 
        var height = document.documentElement.scrollHeight - document.documentElement.clientHeight;
 
        var scrolled = (winScroll / height) * 100;
 
        document.getElementById("myBar").style.width = scrolled + "%";
 
    }
 
    </script>
 
 
</footer>
 
</footer>

Revision as of 17:13, 21 October 2019