CountUpTimerJS - RealTime CountUp Timer JavaScript Library
npm install countup-timer-jsClone the repo:
```
git clone git@github.com:webcyou/countup-timer-js.git
Install with Bower:
``
bower install countup-timer.js
Install with npm:
``
npm install countup-timer-js
``
"hh:mm:ss"
`
$3
`
new CountUpTimer("hh:mm:ss", callBack);
`
example
`
new CountUpTimer("12:11:2", function(times, parameters) {
console.log(times);
});
`subscribe
`
var timer = new CountUpTimer("hh:mm:ss");timer.subscribe(function(times, parameters) {
...
});
`
$3
`
new CountUpTimer(Times, function(times, parameters) {
...
});
`time
times: string
`
"hh:mm:ss"
`prams: Time
$3
| ParametersName | value | Detail |
| --------------- |:---------------:| -------------------- |
| id | number | created date Id |
| splitTimes | string[] | [hours, minute, second] |
| H | number | hours |
| M | number | minute |
| S | number | minute |
| times | string | "hh:mm:ss" |
| isNextDay | boolean | To become true is the one time of 24:00 . |
| createdAt | string | Time that was created |
$3
`
npm install
gulp
`$3
mocha
`
gulp mocha
`mocha watch
`
gulp mocha.watch
``