Skip to content

Latest commit

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

JS - CountDownTimer. Creat a count down timer without dependencies!

countdown-timer

A javascript countdown clock or timer. That is simple to use in any project or on any website.

Usage

Include the (minified) JavaScript Templates script in your HTML markup:

<scriptsrc="./dist/countdownTimer.min.j"></script>

HTML code

<divclass="contdown"><divclass="bloc" id="days"></div><divclass="bloc" id="hours"></div><divclass="bloc" id="minutes"></div><divclass="bloc" id="seconds"></div></div>

JS code

newContDownTimer({
options...
},callbackfunction... )

Options

{launchDate : newDate(year,monthIndex,day,hours,minutes,seconds),language : "string<language>"// Avaliable en|fr default en},function(){// This code will be called after the time is finished}

Valid code example

newContDownTimer({launchDate : newDate(2023,10,22,0,0),language : "fr"},()=>{document.querySelector('.contdown-container').style.display='none'document.body.innerHTML=`<h1>The timer is ended !</h1>`})

About

A javascript countdown clock or timer. That is simple to use in any project or on any website.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages