PageSourceSearch

https://www.lyleandscott.com/cdn/shop/t/458/assets/lyle-countdown.js?v=109926893755233652791788364390

js lyleandscott.com collected 2026-09-24 23:00:22 UTC 898 bytes, 2 lines download raw bytes

1import{formatCountdown,parseCountdownDate,startCountdown}from"@lyle/countdown";class LyleCountdown extends HTMLElement{#stop=null;connectedCallback(){const display=this.querySelector("[data-countdown-display]");if(!display)return;const endDate=parseCountdownDate(this.dataset.endDate);if(!endDate)return;const hideWhenEnded=this.dataset.hideWhenEnded==="true",endedMessage=this.dataset.endedMessage||"";this.#stop=startCountdown(endDate,timeLeft=>{this.dataset.state="running",display.textContent=formatCountdown(timeLeft)},()=>{if(this.dataset.state="ended",hideWhenEnded){this.hidden=!0;return}display.textContent=endedMessage||formatCountdown(0)})}disconnectedCallback(){this.#stop?.(),this.#stop=null}}customElements.get("lyle-countdown")||customElements.define("lyle-countdown",LyleCountdown);
2//# sourceMappingURL=/cdn/shop/t/458/assets/lyle-countdown.js.map?v=109926893755233652791788364390

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.