m |
m |
||
Line 182: | Line 182: | ||
function mobileNav() { | function mobileNav() { | ||
if(window.innerWidth <= 1024) { | if(window.innerWidth <= 1024) { | ||
− | |||
− | |||
− | |||
− | |||
} | } | ||
else { | else { | ||
− | + | navbarLinks[0].style.height = 100%; // to ensure that the regular nav bar gets set back to regular height even after | |
− | + | // the mobile nav has been opened and closed(which would set the height back to 0) | |
− | + | ||
} | } | ||
} | } |
Revision as of 14:22, 23 August 2020