timer
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| timer [2020/08/04 17:55] – dhawann | timer [2020/08/04 18:54] (current) – dhawann | ||
|---|---|---|---|
| Line 5: | Line 5: | ||
| < | < | ||
| // Set the date we're counting down to | // Set the date we're counting down to | ||
| - | var countDownDate = new Date(" | + | var countDownDate = new Date(" |
| // 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=" | // Display the result in the element with id=" | ||
| - | document.getElementById(" | + | document.getElementById(" |
| - | + minutes + "m " + seconds + "s "; | + | + minutes + "m " + seconds + " |
| // If the count down is finished, write some text | // If the count down is finished, write some text | ||
timer.1596563745.txt.gz · Last modified: 2020/08/04 17:55 by dhawann