TanchoToplineCargo/public/assets/js/pages/coming-soon.init.js

1 line
907 B
JavaScript
Raw Normal View History

2024-05-05 04:47:49 +00:00
document.addEventListener("DOMContentLoaded",function(){var e=new Date("Jan 1, 2025").getTime(),d=setInterval(function(){var t=(new Date).getTime(),t=e-t,n='<div class="countdownlist-item"><div class="count-title">Days</div><div class="count-num">'+Math.floor(t/864e5)+'</div></div><div class="countdownlist-item"><div class="count-title">Hours</div><div class="count-num">'+Math.floor(t%864e5/36e5)+'</div></div><div class="countdownlist-item"><div class="count-title">Minutes</div><div class="count-num">'+Math.floor(t%36e5/6e4)+'</div></div><div class="countdownlist-item"><div class="count-title">Seconds</div><div class="count-num">'+Math.floor(t%6e4/1e3)+"</div></div>";document.getElementById("countdown")&&(document.getElementById("countdown").innerHTML=n),t<0&&(clearInterval(d),document.getElementById("countdown").innerHTML='<div class="countdown-endtxt">The countdown has ended!</div>')},1e3)});