Difference between revisions of "Template:HK GTC"

Line 1,616: Line 1,616:
 
<script>
 
<script>
 
window.onload = function () {
 
window.onload = function () {
 +
 +
    var top = document.querySelector("#my-top");
 +
    window.addEventListener("scroll", ()=>{
 +
        top.classList.toggle("onscroll", window.scrollY > 300);
 +
    });
  
 
     //original navigation
 
     //original navigation
Line 1,678: Line 1,683:
 
         });
 
         });
 
     };
 
     };
 
    //navbar on scroll
 
 
    var top = document.querySelector("#my-top");
 
    window.addEventListener("scroll", ()=>{
 
        top.classList.toggle("onscroll", window.scrollY > 300);
 
    });
 
  
 
     //bottle navigation
 
     //bottle navigation

Revision as of 09:23, 5 October 2021

HK_GTC 2021 Homepage