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

m
m
Line 86: Line 86:
  
 
function openMobileNav() {
 
function openMobileNav() {
     navbarLinks[0].style.height = 0;
+
     navbarLinks[0].style.height = "100%";
 
     navBtn.setAttribute("onclick", "closeMobileNav");
 
     navBtn.setAttribute("onclick", "closeMobileNav");
 
}
 
}
  
 
function closeMobileNav() {
 
function closeMobileNav() {
     navbarLinks[0].style.height = "100%";
+
     navbarLinks[0].style.height = 0;
 
     navBtn.setAttribute("onclick", "openMobileNav");
 
     navBtn.setAttribute("onclick", "openMobileNav");
 
}
 
}

Revision as of 22:15, 19 July 2020