PageSourceSearch

https://eboo.pk/cdn/shop/t/6/assets/carousel.js?v=94605229959247441781787995580

js eboo.pk collected 2026-10-04 02:28:34 UTC 2,795 bytes, 2 lines download raw bytes

1(function(){"use strict";function init(root){if(root.dataset.carouselReady==="1")return;root.dataset.carouselReady="1";var track=root.querySelector("[data-carousel-track]");if(!track)return;var prev=root.querySelector("[data-carousel-prev]"),next=root.querySelector("[data-carousel-next]"),dotsWrap=root.querySelector("[data-carousel-dots]"),slides=Array.prototype.slice.call(track.children);function step(){return root.dataset.scrollBy==="page"?Math.round(track.clientWidth*.85):track.clientWidth}function updateArrows(){if(!(!prev||!next)){var max=track.scrollWidth-track.clientWidth-2;prev.disabled=track.scrollLeft<=2,next.disabled=track.scrollLeft>=max}}prev&&prev.addEventListener("click",function(){track.scrollBy({left:-step(),behavior:"smooth"})}),next&&next.addEventListener("click",function(){track.scrollBy({left:step(),behavior:"smooth"})});var dots=[];dotsWrap&&slides.length>1&&slides.forEach(function(slide,i){var dot=document.createElement("button");dot.type="button",dot.className="carousel__dot"+(i===0?" is-active":""),dot.setAttribute("aria-label","Go to slide "+(i+1)),dot.addEventListener("click",function(){track.scrollTo({left:slide.offsetLeft-track.offsetLeft,behavior:"smooth"})}),dotsWrap.appendChild(dot),dots.push(dot)});function currentIndex(){for(var pos=track.scrollLeft+track.clientWidth/2,i=0;i<slides.length;i++){var left=slides[i].offsetLeft-track.offsetLeft;if(pos>=left&&pos<left+slides[i].offsetWidth)return i}return 0}var ticking=!1;if(track.addEventListener("scroll",function(){ticking||(ticking=!0,window.requestAnimationFrame(function(){if(updateArrows(),dots.length){var idx=currentIndex();dots.forEach(function(d,i){d.classList.toggle("is-active",i===idx)})}ticking=!1}))},{passive:!0}),window.addEventListener("resize",updateArrows),updateArrows(),root.dataset.autoplay==="true"&&slides.length>1){var advance=function(){var max=track.scrollWidth-track.clientWidth-2;track.scrollLeft>=max?track.scrollTo({left:0,behavior:"smooth"}):track.scrollBy({left:step(),behavior:"smooth"})},interval=parseInt(root.dataset.interval,10)||6e3,timer=setInterval(advance,interval);root.addEventListener("mouseenter",function(){clearInterval(timer)}),root.addEventListener("mouseleave",function(){timer=setInterval(advance,interval)}),document.addEventListener("visibilitychange",function(){document.hidden?clearInterval(timer):timer=setInterval(advance,interval)})}}function initAll(scope){Array.prototype.slice.call((scope||document).querySelectorAll("[data-carousel]")).forEach(init)}initAll(),document.addEventListener("shopify:section:load",function(e){initAll(e.target)}),document.addEventListener("theme:rerender",function(e){initAll(e.detail&&e.detail.target)})})();
2//# sourceMappingURL=/cdn/shop/t/6/assets/carousel.js.map?v=94605229959247441781787995580

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.