Countdown Timer Codes - Free From InsideTheSquare - Co
Countdown Timer Codes - Free From InsideTheSquare - Co
<style>#countdown{color:#fff;display:inline-block;text-align:center;font-
size:1.5rem} #countdown>div{padding:10px; background:#50bdb8;
display:inline-block} #countdown div>span{padding:5px; display:inline-block}
</style><center><div id="countdown"><div><span class="days" id="day">
</span><div class="text">Days</div></div><div><span class="hours" id="hour">
</span><div class="text">Hours</div></div><div><span class="minutes"
id="minute"></span><div class="text">Minutes</div></div><div><span
class="seconds" id="second"></span><div class="text">Seconds</div></div>
</div><p id="timer"></p></center><script>var deadline=new Date("jan 1, 2020
15:37:25").getTime();var x=setInterval(function(){var now=new
Date().getTime();var t=deadline-now;var days=Math.floor(t/(1000*60*60*24));var
hours=Math.floor((t%(1000*60*60*24))/(1000*60*60));var minutes=Math.floor((t%
(1000*60*60))/(1000*60));var seconds=Math.floor((t%
(1000*60))/1000);document.getElementById("day").innerHTML=days;document.
getElementById("hour").innerHTML=hours;document.getElementById("minute
").innerHTML=minutes;document.getElementById("second").innerHTML=secon
ds;if(t<0){clearInterval(x);document.getElementById("timer").innerHTML="TIME
UP";document.getElementById("day").innerHTML='0';document.getElementBy
Id("hour").innerHTML='0';document.getElementById("minute").innerHTML='0';d
ocument.getElementById("second").innerHTML='0'}},1000);</script>
LEARN MORE CODES FOR SQUARESPACE AT INSIDETHESQUARE.CO
DISCLAIMER: THE TERM "SQUARESPACE" IS A TRADEMARK OF SQUARESPACE, INC. I AM NOT AFFILIATED WITH SQUARESPACE, INC. I JUST REALLY LOVE THEIR PLATFORM AND WANT TO HELP OTHERS USE IT!