Skip to content

lee-ratinan/countdownTimer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

countdownTimer

GitHub last commit GitHub GitHub release (latest by date including pre-releases) GitHub issues GitHub top language

A jQuery plugin for simple countdown timer.

Requirements

To use this library, you need to include jQuery library.

How to use

let options = {
  seconds: 5,
  loop: true,
  callback: function () {
    // do something
  }
};
$('#selector').countdownTimer({options});
  • Set the number of seconds, the default is 5 seconds.
  • Set whether to loop the timer or not.
    • If loop is true, when the timer hits 0, it loops back to the original (5) seconds.
  • Set the callback function, the default is null.
    • If the callback function is not null, it is called when the timer hits 0.

About

https://ratinan.com/countdownTimer/ - jQuery plugin for a simple countdown timer

Topics

Resources

License

Stars

Watchers

Forks

Contributors