Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/leaysgur/sec-count-down-timer

Count down rest seconds
https://github.com/leaysgur/sec-count-down-timer

Last synced: 24 days ago
JSON representation

Count down rest seconds

Awesome Lists containing this project

README

        

sec-count-down-timer
====================

Count down rest seconds

```javascript
// Require
var SecCountDownTimer = require('sec-count-down-timer');

// Construct
var timer = new SecCountDownTimer({
startSec: 30,
onStart: function() { console.log('START!'); }
onCount: function(sec) { console.log(sec); },
onEnd: function() { console.log('END!'); }
});

// Execute
timer.start();

// Others
timer.pause();
timer.resume();
timer.stop();
```