Skip to content

bandeto45/countdown

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

countdown

Count down timer using javascript

Prerequisite

Add element tags with an ID's days, hours, minutes, seconds.

Example

<span id='days'> </span> : <span id='hours'> </span> : <span id='minutes'> </span> : <span id='seconds'> </span>

For Javascript

Call initializeClock function with date ended and current date.

Example :

var today = new Date(); var enddate = "August 25 2019 16:35:23";

initializeClock(endate, today);