PageSourceSearch

https://mendhambikes.com/cdn/shop/t/5/assets/slideshow.js?v=116991832572190478981684429234

js mendhambikes.com collected 2026-10-06 08:00:50 UTC 2,280 bytes, 2 lines download raw bytes

1customElements.get("slideshow-component")||customElements.define("slideshow-component",class extends HTMLElement{constructor(){super(),this.slideshow=this.querySelector(".slideshow")}connectedCallback(){const autoplayEnabled=this.getAttribute("data-autoplay")==="true",autoPlaySpeed=parseInt(this.getAttribute("data-speed"),10)*1e3;this.animationType=this.getAttribute("data-animation-type")??"slide",this.autoPlayEnabled=autoplayEnabled&&autoPlaySpeed>0,this.slideshow&&(this.slideshow.style.display="block",this.flickity=new Flickity(this.slideshow,{autoPlay:autoplayEnabled?autoPlaySpeed:!1,cellAlign:"left",percentPosition:!0,fullscreen:!0,contain:!0,resize:!0,draggable:!0,prevNextButtons:!1,fade:this.animationType==="fade",cellSelector:".slideshow-slide",initialIndex:0,pageDots:!1,wrapAround:!0,accessibility:!1,on:{ready:()=>{this.preloadSlide(1)}}}),this.flickity.on("change",index=>{this.preloadSlide(index+1);const event=new CustomEvent("slideshow:slide-change",{detail:{id:this.getAttribute("id"),index}});document.dispatchEvent(event)}))}preloadSlide(index){const slide=this.querySelectorAll(".slideshow-slide")[index];if(slide){const media=slide.querySelector(".slideshow-media");media.style.display="block",[...slide.querySelectorAll("img")].forEach(image=>{image.loading=""})}}}),customElements.get("slideshow-navigation")||customElements.define("slideshow-navigation",class extends HTMLElement{constructor(){super(),this.slideshow=this.closest("slideshow-component")}connectedCallback(){this.flickity=this.slideshow.flickity;const buttons=this.querySelectorAll(".js-page");this.flickity.on("select",()=>{buttons.forEach(button=>{button.classList.remove("is-active")}),buttons[this.flickity.selectedIndex].classList.add("is-active")}),buttons.forEach(button=>{button.addEventListener("click",()=>{const index=[...buttons].findIndex(x=>x===button);this.flickity.select(index)})}),this.buttonPrev=this.querySelector(".js-prev"),this.buttonNext=this.querySelector(".js-next"),this.buttonPrev.addEventListener("click",event=>{event.preventDefault(),this.flickity.previous()}),this.buttonNext.addEventListener("click",event=>{event.preventDefault(),this.flickity.next()})}});
2//# sourceMappingURL=/cdn/shop/t/5/assets/slideshow.js.map?v=116991832572190478981684429234

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.