PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Dir : /home/trave494/demo2024feb.kerihosting.com/wp-content/themes/genesis/docs/js/ |
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 IP: 209.182.202.254 |
Dir : /home/trave494/demo2024feb.kerihosting.com/wp-content/themes/genesis/docs/js/main.js |
const docs = { config: { breakPoint: 960 } }; const menu = { element: '', button: '', screenWidth: 'wide', setup: function() { menu.element = document.querySelector('.nav'); menu.button = document.querySelector('#menu-button'); menu.setVisibility(); menu.button.addEventListener('click', menu.toggle, false); window.addEventListener('resize', menu.setVisibility); }, toggle: function() { let expanded = menu.button.getAttribute('aria-expanded') === 'true' || false; menu.button.setAttribute('aria-expanded', !expanded); menu.element.hidden = !menu.element.hidden; }, setVisibility: function() { if (window.innerWidth >= docs.config.breakPoint) { menu.button.setAttribute('aria-expanded', true); menu.button.hidden = true; menu.element.hidden = false; menu.screenWidth = 'wide'; return; } // Hide menu only on load and if screen changed from wide state // to narrow. Prevents issue with iOS collapsing open menus on scroll, // due to Mobile Safari firing resize events when scrolling down. if (menu.screenWidth == 'wide') { menu.button.setAttribute('aria-expanded', false); menu.button.hidden = false; menu.element.hidden = true; menu.screenWidth = 'narrow'; } } } menu.setup();