PageSourceSearch

https://www.beasbayouskincare.com/cdn/shop/t/60/assets/countdown-timer.js?v=313614707224091591788573634

js beasbayouskincare.com collected 2026-10-06 20:46:12 UTC 2,900 bytes, 2 lines download raw bytes

1(function(){function parseEnd(root){const endDate=root.dataset.endDate||"",endTime=root.dataset.endTime||"00:00",hideOnEnd=root.dataset.hide==="true",[mStr,dStr,yStr]=(endDate||"").split("-"),[hStr,minStr]=(endTime||"00:00").split(":"),m=parseInt(mStr,10),d=parseInt(dStr,10),y=parseInt(yStr,10),hh=parseInt(hStr,10),mm=parseInt(minStr,10);return!m||!d||!y||isNaN(hh)||isNaN(mm)?{end:null,hideOnEnd}:{end:new Date(y,m-1,d,hh,mm,0,0),hideOnEnd}}function stopTimer(root){root&&root._countdownInterval&&(clearInterval(root._countdownInterval),root._countdownInterval=null,root._countdownRunning=!1)}function startTimer(root){if(!root||root._countdownRunning)return;const{end,hideOnEnd}=parseEnd(root),display=root.querySelector("#countdown-display"),daysEl=root.querySelector("#countdown-days"),hoursEl=root.querySelector("#countdown-hours"),minutesEl=root.querySelector("#countdown-minutes"),secondsEl=root.querySelector("#countdown-seconds");function tick(){if(!end||isNaN(end.getTime())){display&&(display.textContent="Invalid countdown date/time");return}const diff=end-new Date;if(diff<=0){stopTimer(root),root.style.display=hideOnEnd?"none":"flex",!hideOnEnd&&display&&(display.textContent="00:00:00");return}const days=Math.floor(diff/864e5),hours=Math.floor(diff%864e5/36e5),minutes=Math.floor(diff%36e5/6e4),seconds=Math.floor(diff%6e4/1e3);daysEl&&(daysEl.textContent=String(days).padStart(2,"0")),hoursEl&&(hoursEl.textContent=String(hours).padStart(2,"0")),minutesEl&&(minutesEl.textContent=String(minutes).padStart(2,"0")),secondsEl&&(secondsEl.textContent=String(seconds).padStart(2,"0"))}tick(),root._countdownInterval=setInterval(tick,1e3),root._countdownRunning=!0}function initCountdownTimer(container){container.querySelectorAll("#countdown-timer, .countdown-timer").forEach(el=>{stopTimer(el),startTimer(el)})}if(document.addEventListener("DOMContentLoaded",function(){initCountdownTimer(document)}),document.addEventListener("shopify:section:load",function(e){initCountdownTimer(e.target)}),document.addEventListener("shopify:section:select",function(e){initCountdownTimer(e.target)}),document.addEventListener("shopify:section:unload",function(e){e.target.querySelectorAll("#countdown-timer, .countdown-timer").forEach(stopTimer)}),document.addEventListener("shopify:section:reorder",function(){initCountdownTimer(document)}),window.Shopify&&Shopify.designMode){const mo=new MutationObserver(mutations=>{for(const m of mutations)if(m.type==="attributes"&&(m.attributeName||"").startsWith("data-")){const root=m.target.closest("#countdown-timer, .countdown-timer");root&&(stopTimer(root),startTimer(root))}});document.addEventListener("shopify:section:load",function(e){e.target.querySelectorAll("#countdown-timer, .countdown-timer").forEach(el=>mo.observe(el,{attributes:!0}))})}})();
2//# sourceMappingURL=/cdn/shop/t/60/assets/countdown-timer.js.map?v=313614707224091591788573634

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.