1.1.1 • Published 4 years ago

ds-countdown v1.1.1

Weekly downloads
5
License
MIT
Repository
github
Last release
4 years ago

ds-countdown

Install via npm

npm i -S ds-countdown

A simple countdown

Example

new Countdown({
  id: "ds-Countdown",
  targetTime: '2017-01-01 00:00:00',
  noDay: false,
  hideDayAtZero: false,
  separator: '/',
  afterEnd() {
    alert("Time over !")
  }
});
<div id="ds-Countdown"></div>
<!-- or -->
<div id="ds-Countdown">00:00:00:00</div>

Options

  • targetTime : string, format = yyyy-mm-dd hh:mm:ss (convert to timestamp)
  • noDay : hide the variable Day and minutes are calculate with the number of days
  • hideDayAtZero : Minutes are calculated on the number of day & hide the variable Day
  • afterEnd : callback function initialize after the countdown reaches 00:00:00:00
  • separator : use a custom separator
1.1.1

4 years ago

1.1.0

4 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago