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

m
m
Line 180: Line 180:
 
function mobileNav() {
 
function mobileNav() {
 
     if(window.innerWidth <= 1024) {
 
     if(window.innerWidth <= 1024) {
         navbarLinks[0].style.height = "0";
+
         //navbarLinks[0].style.height = "0";
 
         var navBtn = document.getElementById("nav-icon");
 
         var navBtn = document.getElementById("nav-icon");
 
         if(navBtn.classList.contains("toggle-nav")) {
 
         if(navBtn.classList.contains("toggle-nav")) {
             navBtn.classList.toggle("toggle-nav");
+
             closeMobileNav();
 
         }
 
         }
 
     }
 
     }

Revision as of 17:50, 6 September 2020