PageSourceSearch

https://www.kingz.com/cdn/shop/t/115/assets/collection-slider-component.js?v=38373057864927748711784586599

js kingz.com collected 2026-10-10 01:17:52 UTC 851 bytes, 1 lines download raw bytes

1import{S as t}from"vendors/splide.esm";class l 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 t(this.slider,this.options),this.Splide.on("mounted",()=>this.onResize()),this.Splide.on("overflow",e=>{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 e=0;this.slider.querySelectorAll(".splide__slide.is-visible").forEach(s=>{const i=s.querySelector(".product-card");i.clientHeight>e&&(e=i.clientHeight)}),this.sliderList.style.height=`${e}px`}}customElements.define("collection-slider-component",l);

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.