Difference between revisions of "Template:Queens Canada/Scripts"

m
m
Line 16: Line 16:
 
         for(i = 0; i < navText.length; i++) { // makes the text inside each nav-item visible  
 
         for(i = 0; i < navText.length; i++) { // makes the text inside each nav-item visible  
 
             navText[i].style.opacity = "1";
 
             navText[i].style.opacity = "1";
             navItems[i].style.pointer-events = "all"; // gives back the ability to click on things when the nav is open
+
             navItems[i].style.pointerEvents = "all"; // gives back the ability to click on things when the nav is open
 
         }  
 
         }  
 
     }, 500);     
 
     }, 500);     
Line 30: Line 30:
 
     for(i = 0; i < navText.length; i++) {
 
     for(i = 0; i < navText.length; i++) {
 
         navText[i].style.opacity = "0";
 
         navText[i].style.opacity = "0";
         navItems[i].style.pointer-events = "none"; // tries to hide the fact that you can still click on it when closed
+
         navItems[i].style.pointerEvents = "none"; // tries to hide the fact that you can still click on it when closed
 
     }
 
     }
  

Revision as of 15:00, 15 June 2020