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

m
m
Line 23: Line 23:
 
const changeWordTime = 100; //Time to switch letters
 
const changeWordTime = 100; //Time to switch letters
  
for(i = 0; i < dropdownLinks.length; i++) {
+
for(i = 0; i < dropdownLinks.length; i++)  
     dropdownLinks[i].addEventListener("click", function() {
+
{
 +
     dropdownLinks[i].addEventListener("click", function()  
 +
    {
 
         var dropdownContent = this.nextElementSibling;
 
         var dropdownContent = this.nextElementSibling;
         if(dropdownContent.style.visiblity === "visible") {
+
         if(dropdownContent.style.visiblity === "visible")  
 +
        {
 
             dropdownContent.style.visibility = "hidden";
 
             dropdownContent.style.visibility = "hidden";
 
         }
 
         }
         else {
+
         else  
 +
        {
 
             dropdownContent.style.visiblity = "visible";
 
             dropdownContent.style.visiblity = "visible";
 
         }
 
         }
     }
+
     })
 
}
 
}
  

Revision as of 04:24, 22 July 2020