1.0.0 • Published 5 years ago

countdown-purejs v1.0.0

Weekly downloads
2
License
MIT
Repository
-
Last release
5 years ago

RESPONSIVE COUNTDOWN

Description

Simple responsive countdown to make a timer.

Installation

npm i countdown-purejs

Usage

import countdown from 'countdown-purejs';

let countdown = new Countdown("countdown", "2032-10-20:14-30", "english", "Timer is Over");
countdown.createCountdown();
NameValue(s)RequireTypeDesc
nameDivIdcountdownDivIdyesstringThe name of the div ID where the countdown will be show
dateYYY-MM-DD / YYY-MM-DD:mm-ssyesstringThe future date
languagearab / bengali / chinese / english / french / german / hindi / italian / japanese / portuguese / russian / spanishnostringThe language of the information displayed
expiredMessageTime is OvernostringThe message that will be displayed when the timer is over

constructor(nameDivId, date, language = "english", expiredMessage = "timer is over")

Example

alt text