PageSourceSearch

https://www.nnio.asia/cdn/shop/t/25/compiled_assets/scripts.js?v=89992143731797043231790239647

js nnio.asia collected 2026-10-08 07:19:38 UTC 6,945 bytes, 2 lines download raw bytes

1(function(){var __sections__={};(function(){for(var i=0,s=document.getElementById("sections-script").getAttribute("data-sections").split(",");i<s.length;i++)__sections__[s[i]]=!0})(),(function(){if(!(!__sections__["countdown-timer-banner"]&&!Shopify.designMode))try{class CountdownTimer extends HTMLElement{constructor(){super()}init(){this.schemaTime=this.getAttribute("schema-time"),this.timer=this.querySelector(".timer"),this.countdown=new Date(this.schemaTime).getTime(),this.second=1e3,this.minute=this.second*60,this.hour=this.minute*60,this.day=this.hour*24,this.timerInterval=null,this.startTimer(),setTimeout(()=>this.timer.style.visibility="visible",1e3)}padWithLeadingZero=number=>number<10?"0"+number:number;isDateInPast(date){return date<new Date}startTimer(){const timerElem=this.timer;this.timerInterval=setInterval(()=>{const now=new Date().getTime(),distance=this.countdown-now,dayCalc=Math.floor(distance/this.day),hourCalc=Math.floor(distance%this.day/this.hour),minuteCalc=Math.floor(distance%this.hour/this.minute),secondCalc=Math.floor(distance%this.minute/this.second);timerElem.querySelector(".js-timer-days").textContent=this.padWithLeadingZero(dayCalc),timerElem.querySelector(".js-timer-hours").textContent=this.padWithLeadingZero(hourCalc),timerElem.querySelector(".js-timer-minutes").textContent=this.padWithLeadingZero(minuteCalc),timerElem.querySelector(".js-timer-seconds").textContent=this.padWithLeadingZero(secondCalc)},this.second)}disconnectedCallback(){clearInterval(this.timerInterval)}connectedCallback(){this.init(),console.log("countdown timer was added to the page");const timerFlexContainer=window.document.querySelector(".timer-flex-container"),timerElem=this.timer;this.isDateInPast(this.countdown)&&(timerFlexContainer.remove(),this.remove()),window.setTimeout(()=>{timerFlexContainer.classList.remove("hide-element")},2e3)}}customElements.define("countdown-timer",CountdownTimer)}catch(e){console.error(e)}})(),(function(){if(!(!__sections__["countdown-timer-topbar"]&&!Shopify.designMode))try{class CountdownTimerBar extends HTMLElement{constructor(){super()}init(){this.schemaTime=this.getAttribute("schema-time"),this.timer=this.querySelector(".timer"),this.countdown=new Date(this.schemaTime).getTime(),this.second=1e3,this.minute=this.second*60,this.hour=this.minute*60,this.day=this.hour*24,this.timerInterval=null,this.startTimer(),setTimeout(()=>this.timer.style.visibility="visible",1e3)}padWithLeadingZero=number=>number<10?"0"+number:number;isDateInPast(date){return date<new Date}startTimer(){const timerElem=this.timer;this.timerInterval=setInterval(()=>{const now=new Date().getTime(),distance=this.countdown-now,dayCalc=Math.floor(distance/this.day),hourCalc=Math.floor(distance%this.day/this.hour),minuteCalc=Math.floor(distance%this.hour/this.minute),secondCalc=Math.floor(distance%this.minute/this.second);timerElem.querySelector(".js-timer-days").textContent=this.padWithLeadingZero(dayCalc),timerElem.querySelector(".js-timer-hours").textContent=this.padWithLeadingZero(hourCalc),timerElem.querySelector(".js-timer-minutes").textContent=this.padWithLeadingZero(minuteCalc),timerElem.querySelector(".js-timer-seconds").textContent=this.padWithLeadingZero(secondCalc)},this.second)}disconnectedCallback(){clearInterval(this.timerInterval)}connectedCallback(){this.init(),console.log("countdown timer was added to the page");const timerFlexContainer=window.document.querySelector(".timer-flex-container"),timerElem=this.timer;this.isDateInPast(this.countdown)&&(timerFlexContainer.remove(),this.remove()),window.setTimeout(()=>{timerFlexContainer.classList.remove("hide-element")},2e3)}disconnectedCallback(){console.log("The Timer date has passed so the timer was removed")}}customElements.define("countdown-timer-bar",CountdownTimerBar)}catch(e){console.error(e)}})(),(function(){if(__sections__.header)try{class StickyHeader extends HTMLElement{constructor(){super()}connectedCallback(){this.header=document.querySelector(".section-header"),this.headerIsAlwaysSticky=this.getAttribute("data-sticky-type")==="always"||this.getAttribute("data-sticky-type")==="reduce-logo-size",this.headerBounds={},this.setHeaderHeight(),window.matchMedia("(max-width: 990px)").addEventListener("change",this.setHeaderHeight.bind(this)),this.headerIsAlwaysSticky&&this.header.classList.add("shopify-section-header-sticky"),this.currentScrollTop=0,this.preventReveal=!1,this.predictiveSearch=this.querySelector("predictive-search"),this.onScrollHandler=this.onScroll.bind(this),this.hideHeaderOnScrollUp=()=>this.preventReveal=!0,this.addEventListener("preventHeaderReveal",this.hideHeaderOnScrollUp),window.addEventListener("scroll",this.onScrollHandler,!1),this.createObserver()}setHeaderHeight(){document.documentElement.style.setProperty("--header-height",`${this.header.offsetHeight}px`)}disconnectedCallback(){this.removeEventListener("preventHeaderReveal",this.hideHeaderOnScrollUp),window.removeEventListener("scroll",this.onScrollHandler)}createObserver(){new IntersectionObserver((entries,observer2)=>{this.headerBounds=entries[0].intersectionRect,observer2.disconnect()}).observe(this.header)}onScroll(){const scrollTop=window.pageYOffset||document.documentElement.scrollTop;if(!(this.predictiveSearch&&this.predictiveSearch.isOpen)){if(scrollTop>this.currentScrollTop&&scrollTop>this.headerBounds.bottom){if(this.header.classList.add("scrolled-past-header"),this.preventHide)return;requestAnimationFrame(this.hide.bind(this))}else scrollTop<this.currentScrollTop&&scrollTop>this.headerBounds.bottom?(this.header.classList.add("scrolled-past-header"),this.preventReveal?(window.clearTimeout(this.isScrolling),this.isScrolling=setTimeout(()=>{this.preventReveal=!1},66),requestAnimationFrame(this.hide.bind(this))):requestAnimationFrame(this.reveal.bind(this))):scrollTop<=this.headerBounds.top&&(this.header.classList.remove("scrolled-past-header"),requestAnimationFrame(this.reset.bind(this)));this.currentScrollTop=scrollTop}}hide(){this.headerIsAlwaysSticky||(this.header.classList.add("shopify-section-header-hidden","shopify-section-header-sticky"),this.closeMenuDisclosure(),this.closeSearchModal())}reveal(){this.headerIsAlwaysSticky||(this.header.classList.add("shopify-section-header-sticky","animate"),this.header.classList.remove("shopify-section-header-hidden"))}reset(){this.headerIsAlwaysSticky||this.header.classList.remove("shopify-section-header-hidden","shopify-section-header-sticky","animate")}closeMenuDisclosure(){this.disclosures=this.disclosures||this.header.querySelectorAll("header-menu"),this.disclosures.forEac
1h(disclosure=>disclosure.close())}closeSearchModal(){this.searchModal=this.searchModal||this.header.querySelector("details-modal"),this.searchModal.close(!1)}}customElements.define("sticky-header",StickyHeader)}catch(e){console.error(e)}})()})();
2//# sourceMappingURL=/cdn/shop/t/25/compiled_assets/scripts.js.map?v=89992143731797043231790239647

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.