PageSourceSearch

https://www.zonebowling.com/static/js/component/component-header.min.js

js zonebowling.com collected 2026-09-29 21:55:19 UTC 1,722 bytes, 2 lines download raw bytes

1export default class ComponentHeader{constructor(){this.lastScroll=0,this.appHeader=document.querySelector(".component-header"),this.openCloseButton=document.querySelector(".component-header .top .open-close-container"),this.navigationContainer=document.querySelector(".component-header .top .navigation-container"),this.mobileNavigation=document.querySelector(".component-header .mobile-navigation"),this.setEvents(),this.updateLogoSource()}setEvents(){window.addEventListener("scroll",this.eventScroll.bind(this)),window.addEventListener("resize",this.updateLogoSource.bind(this)),this.openCloseButton.addEventListener("click",this.eventClick.bind(this))}updateLogoSource(){const e=document.querySelector(".logo-container img");if(e){var o=e.getAttribute("data-desktop-logo"),i=e.getAttribute("data-mobile-logo"),s=this.appHeader.classList.contains("scroll-down"),a=window.innerWidth<=992;let t="";a&&s||a&&!s||!a&&s?t=i:a||s||(t=o);i=e.getAttribute("srcset");t!==i&&(e.style.opacity=0,setTimeout(()=>{e.setAttribute("srcset",t),e.style.opacity=1},300))}}eventScroll(){var t=window.pageYOffset;t<=0?(this.appHeader.classList.remove("scroll-down"),this.updateLogoSource()):(t>this.lastScroll?this.appHeader.classList.add("scroll-down"):this.lastScroll,this.updateLogoSource(),this.lastScroll=t)}eventClick(t){console.log("event",t),this.mobileNavigation.classList.contains("active")?(this.mobileNavigation.classList.remove("active"),this.openCloseButton.classList.remove("active"),this.appHeader.classList.remove("mobile-active")):(this.mobileNavigation.classList.add("active"),this.openCloseButton.classList.add("active"),this.appHeader.classList.add("mobile-active"))}}
2//# sourceMappingURL=component-header.min.js.map

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.