New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

ds-countdown

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ds-countdown

Countdown

latest
Source
npmnpm
Version
1.1.1
Version published
Weekly downloads
38
46.15%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

countdown

FAQs

Package last updated on 19 Dec 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts