PageSourceSearch

https://petmadness.com/cdn/shop/t/16/assets/countdown.js?v=9210559188785419431786308053

js petmadness.com collected 2026-10-05 23:08:17 UTC 1,744 bytes, 2 lines download raw bytes

1if(!customElements.get("custom-countdown")){class CustomCountdown extends HTMLElement{constructor(){super(),this.endDate=new Date(this.dataset.endDate).getTime(),Number(this.endDate)&&(this.secondsElem=this.querySelector(".js-seconds"),this.minutesElem=this.querySelector(".js-minutes"),this.hoursElem=this.querySelector(".js-hours"),this.daysElem=this.querySelector(".js-days"),this.seconds=1e3,this.minutes=this.seconds*60,this.hours=this.minutes*60,this.days=this.hours*24,this.nextTick(),this.intervalTimer=setInterval(this.nextTick.bind(this),this.seconds))}nextTick(){const remaining=this.endDate-new Date;if(remaining<0){clearInterval(this.intervalTimer);return}const days=Math.floor(remaining/this.days),hours=Math.floor(remaining/this.hours),minutes=Math.floor(remaining/this.minutes),secs=Math.floor(remaining/this.seconds);days===0&&this.daysElem&&(this.daysElem.closest(".countdown__block").remove(),this.daysElem=null,this.hoursElem&&hours-days*24===0&&(this.hoursElem.closest(".countdown__block").remove(),this.hoursElem=null));let digits=2;const remainingDays=days,remainingHours=hours-days*24,remainingMinutes=minutes-hours*60,remainingSecs=secs-minutes*60;this.daysElem&&(this.daysElem.textContent=remainingDays<10?`0${remainingDays}`:remainingDays,digits++),this.hoursElem&&(this.hoursElem.textContent=remainingHours<10?`0${remainingHours}`:remainingHours,digits++),this.minutesElem.textContent=remainingMinutes<10?`0${remainingMinutes}`:remainingMinutes,this.secondsElem.textContent=remainingSecs<10?`0${remainingSecs}`:remainingSecs,this.setAttribute("data-digits",digits)}}customElements.define("custom-countdown",CustomCountdown)}
2//# sourceMappingURL=/cdn/shop/t/16/assets/countdown.js.map?v=9210559188785419431786308053

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.