Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/leaysgur/sec-count-down-timer
- Owner: leaysgur
- License: mit
- Created: 2014-12-03T02:34:35.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2014-12-03T03:13:49.000Z (almost 10 years ago)
- Last Synced: 2024-04-15T07:12:05.563Z (7 months ago)
- Language: JavaScript
- Size: 133 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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();
```