User Tools

Site Tools


timer

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
timer [2020/08/04 17:55] – created dhawanntimer [2020/08/04 18:54] (current) dhawann
Line 5: Line 5:
 <script> <script>
 // Set the date we're counting down to // Set the date we're counting down to
-var countDownDate = new Date("Jan 5, 2021 15:37:25").getTime();+var countDownDate = new Date("Aug 5, 2020 9:00:00").getTime();
  
 // Update the count down every 1 second // Update the count down every 1 second
Line 23: Line 23:
  
   // Display the result in the element with id="demo"   // Display the result in the element with id="demo"
-  document.getElementById("demo").innerHTML = days + "d " + hours + "h " +  document.getElementById("demo").innerHTML ="<h1>"days + "d " + hours + "h " 
-  + minutes + "m " + seconds + "s ";+  + minutes + "m " + seconds + "</h1>";
  
   // If the count down is finished, write some text   // If the count down is finished, write some text
timer.1596563704.txt.gz · Last modified: 2020/08/04 17:55 by dhawann