PageSourceSearch

https://www.paperplane.shop/cdn/shop/t/1106/assets/color-links.js?v=71762298935634067241790351819

js paperplane.shop collected 2026-09-27 21:33:22 UTC 1,377 bytes, 2 lines download raw bytes

1if(!customElements.get("color-links")){class colorLinks extends HTMLElement{constructor(){super(),this.list=this.querySelector("ul"),this.url=this.dataset.url,this.id=this.dataset.id,this.collection=this.dataset.collection,this.legend=this.closest(".product-form__input").querySelector(".form__label"),this.fetchColorLinks()}fetchColorLinks(){fetch(this.url).then(response=>response.text()).then(data=>{const swatches=new DOMParser().parseFromString(data,"text/html").querySelectorAll("li");let activeId="";if(swatches.length){this.list.innerHTML="";let swatchCount=1;swatches.forEach(swatch=>{const swatchLink=swatch.querySelector("a"),swatchInput=swatch.querySelector("input"),swatchLabel=swatch.querySelector("label"),swatchLabelText=swatchLabel.textContent,swatchInputId=`group-${this.id}-${this.collection}-${swatchCount}`,swatchDataId=`${swatchInput.dataset.id}-${this.collection}`;swatchLabel.setAttribute("for",swatchInputId),swatchInput.name=this.id,swatchInput.id=swatchInputId,swatchDataId===this.id&&(swatchInput.checked=!0,activeId=swatchInput.dataset.image,this.legend.textContent=swatchLabelText),this.list.appendChild(swatch),swatchCount++})}}).catch(error=>console.error("Error fetching product swatches:",error))}}customElements.define("color-links",colorLinks)}
2//# sourceMappingURL=/cdn/shop/t/1106/assets/color-links.js.map?v=71762298935634067241790351819

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.