PageSourceSearch

https://stila.co.uk/cdn/shop/t/33/assets/component-quantity-selector.js?v=171718841822426506621723099981

js stila.co.uk collected 2026-09-25 18:46:28 UTC 1,284 bytes, 2 lines download raw bytes

1if(typeof ProductQuantity!="function"){class ProductQuantity2 extends HTMLElement{constructor(){super();const qty=this.querySelector(".qty-selector"),qtyMinus=this.querySelector(".qty-minus"),qtyPlus=this.querySelector(".qty-plus"),qtyMin=qty.getAttribute("min")?parseInt(qty.getAttribute("min")):1,qtyMax=qty.getAttribute("max")?parseInt(qty.getAttribute("max")):999;parseInt(qty.value)-1<qtyMin&&qtyMinus.classList.add("disabled"),parseInt(qty.value)+1>qtyMax&&qtyPlus.classList.add("disabled"),qtyMinus.addEventListener("click",e=>{if(e.preventDefault(),!qtyMinus.classList.contains("disabled")){const currentQty=parseInt(qty.value);currentQty-1>=qtyMin&&(qty.value=currentQty-1,qtyPlus.classList.remove("disabled")),currentQty-1<=qtyMin&&qtyMinus.classList.add("disabled")}}),qtyPlus.addEventListener("click",e=>{if(e.preventDefault(),!qtyPlus.classList.contains("disabled")){const currentQty=parseInt(qty.value);currentQty+1<=qtyMax&&(qty.value=currentQty+1,qtyMinus.classList.remove("disabled")),currentQty+1>=qtyMax&&qtyPlus.classList.add("disabled")}})}}typeof customElements.get("product-quantity")>"u"&&customElements.define("product-quantity",ProductQuantity2)}
2//# sourceMappingURL=/cdn/shop/t/33/assets/component-quantity-selector.js.map?v=171718841822426506621723099981

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.