1.1.6 • Published 9 years ago
countup-timer-js v1.1.6
CountUpTimerJS
CountUpTimerJS - RealTime CountUp Timer JavaScript Library
これは何?
カウントアップタイマー、JavaScriptライブラリです。
demo
Quick start
Clone the repo:
git clone git@github.com:webcyou/countup-timer-js.gitInstall with Bower:
bower install countup-timer.jsInstall with npm:
npm install countup-timer-jsBasic Usage
<script src="countup_timer.js"></script>Basic Format
"hh:mm:ss"Start DataSet
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) {
...
});CallBack
new CountUpTimer(Times, function(times, parameters) {
...
});time
times: string
"hh:mm:ss"prams: Time
CallBack Parameters Reference
| 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 |
Start develop
npm install
gulp Start Test
mocha
gulp mochamocha watch
gulp mocha.watchAuthor
Daisuke Takayama Web帳
License
MIT