PageSourceSearch

https://www.bubbleroom.fi/cdn/shop/t/26/compiled_assets/scripts.js?v=152019663967716742831789550379

js bubbleroom.fi collected 2026-09-26 15:36:58 UTC 4,592 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__["multi-banner-hero"]&&!Shopify.designMode))try{let initBanner2=function(section){if(bannerInstances.has(section))return;const layoutMode=section.dataset.layoutMode||"grid";if(!["slider","slider_mobile","slider_desktop"].includes(layoutMode))return;const track=section.querySelector("[data-slider-track]"),slides=Array.from(section.querySelectorAll("[data-banner-item]")),dots=Array.from(section.querySelectorAll("[data-banner-dot]")),progress=section.querySelector("[data-banner-progress]"),progressStyle=section.dataset.progressStyle||"pie",circumference=progress&&progressStyle==="ring"&&typeof progress.getTotalLength=="function"?progress.getTotalLength():0,autoplayEnabled=section.dataset.autoplay!=="false"&&slides.length>1,delay=parseInt(section.dataset.autoplayDelay||"0",10)||1e4;if(!track||slides.length<=1)return;let current=0,timer=null,startX=null,deltaX=0,sliderActive=!1;const desktopMedia=window.matchMedia("(min-width: 768px)"),controller=new AbortController,listen=(target,type,handler)=>{target.addEventListener(type,handler,{signal:controller.signal})};bannerInstances.set(section,()=>{clearInterval(timer),controller.abort(),bannerInstances.delete(section)}),progress&&circumference&&(progress.style.strokeDasharray=`${circumference}`,progress.style.strokeDashoffset=`${circumference}`);function restartProgress(){!progress||!sliderActive||!autoplayEnabled||(progress.classList.remove("is-active"),progressStyle==="ring"&&circumference?progress.style.strokeDashoffset=`${circumference}`:progress.style.setProperty("--banner-progress","0deg"),progress.getBoundingClientRect(),progress.classList.add("is-active"))}function shouldBeSlider(){return layoutMode==="slider"?!0:layoutMode==="slider_mobile"?!desktopMedia.matches:layoutMode==="slider_desktop"?desktopMedia.matches:!1}function setSlide(next){current=(next+slides.length)%slides.length,track.style.setProperty("--current",current),dots.forEach((dot,index)=>{const isActive=index===current;dot.classList.toggle("is-active",isActive),dot.removeAttribute("aria-current"),isActive&&(dot.classList.remove("is-active"),dot.offsetWidth,dot.classList.add("is-active"),dot.setAttribute("aria-current","true"))}),restartProgress()}function startAutoplay(){!autoplayEnabled||!sliderActive||(clearInterval(timer),timer=setInterval(()=>setSlide(current+1),delay),restartProgress())}function syncSliderState(){const desired=shouldBeSlider()&&slides.length>1;if(desired!==sliderActive){if(sliderActive=desired,section.dataset.sliderActive=sliderActive?"true":"false",!sliderActive){clearInterval(timer),track.style.setProperty("--current",0),progress&&(progress.classList.remove("is-active"),progressStyle==="ring"&&circumference?progress.style.strokeDashoffset=`${circumference}`:progress.style.setProperty("--banner-progress","0deg"));return}setSlide(current),startAutoplay()}}dots.forEach(dot=>{listen(dot,"click",()=>{if(!sliderActive)return;const next=Number(dot.dataset.index)||0;setSlide(next),startAutoplay()})}),listen(track,"pointerdown",event=>{sliderActive&&(startX=event.clientX,deltaX=0)}),listen(track,"pointermove",event=>{startX!==null&&(deltaX=event.clientX-startX)}),listen(track,"pointerup",()=>{startX!==null&&(Math.abs(deltaX)>50&&sliderActive&&(setSlide(current+(deltaX<0?1:-1)),startAutoplay()),startX=null,deltaX=0)}),listen(track,"pointercancel",()=>{startX=null,deltaX=0}),sliderActive=shouldBeSlider()&&slides.length>1,section.dataset.sliderActive=sliderActive?"true":"false",setSlide(0),sliderActive&&startAutoplay(),listen(desktopMedia,"change",syncSliderState)},forEachBanner2=function(root,callback){root.matches?.(bannerSelector)&&callback(root),root.querySelectorAll(bannerSelector).forEach(callback)};var initBanner=initBanner2,forEachBanner=forEachBanner2;const bannerInstances=new WeakMap,bannerSelector='[data-section-type="multi-banner-hero"]';document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>
1forEachBanner2(document,initBanner2),{once:!0}):forEachBanner2(document,initBanner2),document.addEventListener("shopify:section:load",event=>{forEachBanner2(event.target,initBanner2)}),document.addEventListener("shopify:section:unload",event=>{forEachBanner2(event.target,section=>bannerInstances.get(section)?.())})}catch(e){console.error(e)}})()})();
2//# sourceMappingURL=/cdn/shop/t/26/compiled_assets/scripts.js.map?v=152019663967716742831789550379

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.