@horlarme/countdowntimer
v1.3.2
Published
Start a countdown timer with ease.
Downloads
5
Maintainers
Readme
CountDownTimer
Start coundown with ease using this javascript file.
Installation
- Download the file 'index.js' and include it in your html file
<head>
<title></title>
<script src="./index.js"></script>
</head>
Configuration
- Attach date to any element using this attribute 'dct-date' with the date as value '2018 01 20'
<p cdt-date="2017 01 20"></p>
- Set the element to display the count down as follows
<p>Days: <span cdt-days></span></p>
<p>Hours: <span cdt-hours></span></p>
<p>Minutes <span cdt-minutes></span></p>
<p>Seconds: <span cdt-seconds></span></p>
- Start the countdown
<script>
CDT.start();
</script>
Then all is set, sit back and see your count down in action.