User Tools

Site Tools


timer

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
timer [2020/08/04 17:56] dhawanntimer [2020/08/04 18:54] (current) dhawann
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.1596563761.txt.gz · Last modified: 2020/08/04 17:56 by dhawann