PageSourceSearch

https://57hours.com/wp-content/cache/min/1/wp-content/themes/57hou…/classes/main/Navigation.js?ver=1790239622

js 57hours.com collected 2026-09-24 19:57:18 UTC 1,748 bytes, 8 lines download raw bytes

1(function(){var container,button,menu,links,i,len,close;container=document.querySelector('.main-menu__mobile');if(!container){return}
2button=document.getElementById('menuTrigger');if(!button){return}
3close=container.querySelector('.main-menu__mobile__close-menu');if(typeof close==='undefined'){return}
4menu=container.getElementsByTagName('ul')[0];close.onclick=function(){if(container.className.indexOf('main-menu__mobile--active')!==-1){container.classList.remove('main-menu__mobile--active');button.setAttribute('aria-expanded','false');menu.setAttribute('aria-expanded','false');bodyScrollLock.enableBodyScroll(container)}};if(typeof menu==='undefined'){button.style.display='none';return}
5menu.setAttribute('aria-expanded','false');if(menu.className.indexOf('nav-menu')===-1){menu.className+=' nav-menu'}
6button.onclick=function(){if(container.className.indexOf('main-menu__mobile--active')===-1){container.classList.add('main-menu__mobile--active');button.setAttribute('aria-expanded','true');menu.setAttribute('aria-expanded','true');bodyScrollLock.disableBodyScroll(container)}};links=menu.getElementsByTagName('a');for(i=0,len=links.length;i<len;i++){links[i].addEventListener('focus',toggleFocus,!0);links[i].addEventListener('blur',toggleFocus,!0);links[i].addEventListener('click',function(){if(container.className.indexOf('main-menu__mobile--active')!==-1){container.classList.remove('main-menu__mobile--active');bodyScrollLock.enableBodyScroll(container)}})}
7function toggleFocus(){var self=this;while(self.className.indexOf('nav-menu')===-1){if(self.tagName.toLowerCase()==='li'){if(self.className.indexOf('focus')!==-1){self.className=self.className.replace(' focus','')}else{self.className+=' focus'}}
8self=self.parentElement}}}())

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.