Difference between revisions of "Template:British Columbia 2"

m
m
Line 87: Line 87:
  
 
function scrollFunction(){
 
function scrollFunction(){
 +
    var navigationBar= document.getElementById("navigation-bar");
 +
 
     if (document.body.scrollTop > 339 || document.documentElement.scrollTop > 339) {
 
     if (document.body.scrollTop > 339 || document.documentElement.scrollTop > 339) {
         document.getElementById("navigation-bar").className += " opaque-nav";
+
         navigationBar.classList.add("opaque-nav");
 
     } else {
 
     } else {
         document.getElementById("navigation-bar").className -= " opaque-nav";
+
         navigationBar.classList.add("");
 
     }
 
     }
 
}
 
}

Revision as of 14:07, 3 October 2016

Home

Eagles