PageSourceSearch

https://shoelacesexpress.com/cdn/shop/t/47/assets/collection-slide…?v=56446251419052591951773347893

js shoelacesexpress.com collected 2026-10-06 21:36:48 UTC 1,138 bytes, 2 lines download raw bytes

1import{S as Splide}from"vendors/splide.esm";class CollectionSliderComponent extends HTMLElement{constructor(){super(),this.slider=this.querySelector(".splide"),this.sliderList=this.slider.querySelector(".splide__list"),this.options=JSON.parse(this.slider.dataset.options),this.Splide=new Splide(this.slider,this.options),this.Splide.on("mounted",()=>this.onResize()),this.Splide.on("overflow",isOverflow=>{this.Splide.slideCount!=1&&this.slider.classList.add("is-overflow")}),this.Splide.mount()}onResize(){this.sliderResizeObserver=new ResizeObserver(()=>{this.resizeHeight()}),this.sliderResizeObserver.observe(this.slider)}resizeHeight(){let maxProducCardHeight=0;this.slider.querySelectorAll(".splide__slide.is-visible").forEach(slide=>{const productCard=slide.querySelector(".product-card");productCard.clientHeight>maxProducCardHeight&&(maxProducCardHeight=productCard.clientHeight)}),this.sliderList.style.height=`${maxProducCardHeight}px`}}customElements.define("collection-slider-component",CollectionSliderComponent);
2//# sourceMappingURL=/cdn/shop/t/47/assets/collection-slider-component.js.map?v=56446251419052591951773347893

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.