@horlarme/countdowntimer

1.3.2 • Public • Published

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.

Package Sidebar

Install

npm i @horlarme/countdowntimer

Weekly Downloads

1

Version

1.3.2

License

MIT

Unpacked Size

11.7 kB

Total Files

7

Last publish

Collaborators

  • meetweb