Difference between revisions of "Template:NCTU Formosa/test"

Line 1,737: Line 1,737:
 
var currentScrollPos = window.pageYOffset;
 
var currentScrollPos = window.pageYOffset;
 
   if (prevScrollpos > currentScrollPos) {
 
   if (prevScrollpos > currentScrollPos) {
     document.getElementById("navigate","main-container").style.top = "0";
+
     document.getElementById("main-container").style.top = "0";
 
   } else {
 
   } else {
     document.getElementById("navigate","main-container").style.top = "-80px";
+
     document.getElementById("main-container").style.top = "-80px";
 
   }
 
   }
 
   prevScrollpos = currentScrollPos;
 
   prevScrollpos = currentScrollPos;
Line 1,747: Line 1,747:
  
 
</html>
 
</html>
 +
 +
{{NCTU Formosa/Scroll_nav}}

Revision as of 22:01, 12 October 2018

Navigation Bar