- Joined
- Jan 26, 2023
- Messages
- 1
- Reaction score
- 0
<style>#countdown{color:#000; display:inline-block; text-align:center; font-size:1.5rem}
#countdown>div{padding:10px; background:#E1CE2A; 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></left><script>var deadline=new Date("jan 1, 2022
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=seconds;if(t<0)
{clearInterval(x);document.getElementById("timer").innerHTML="TIME
UP";document.getElementById("day").innerHTML='0';
document.getElementById("hour").innerHTML='0';
document.getElementById("minute").innerHTML='0';
document.getElementById("second").innerHTML='0'}},1000); </script>
#countdown>div{padding:10px; background:#E1CE2A; 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></left><script>var deadline=new Date("jan 1, 2022
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=seconds;if(t<0)
{clearInterval(x);document.getElementById("timer").innerHTML="TIME
UP";document.getElementById("day").innerHTML='0';
document.getElementById("hour").innerHTML='0';
document.getElementById("minute").innerHTML='0';
document.getElementById("second").innerHTML='0'}},1000); </script>