1.1.6 • Published 10 years ago

countup-timer-js v1.1.6

Weekly downloads
2
License
MIT
Repository
github
Last release
10 years ago

CountUpTimerJS

CountUpTimerJS - RealTime CountUp Timer JavaScript Library

これは何?

カウントアップタイマー、JavaScriptライブラリです。

demo

デモページ

Quick start

Clone 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

Basic 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

ParametersNamevalueDetail
idnumbercreated date Id
splitTimesstring[]hours, minute, second
Hnumberhours
Mnumberminute
Snumberminute
timesstring"hh:mm:ss"
isNextDaybooleanTo become true is the one time of 24:00 .
createdAtstringTime that was created

Start develop

npm install
gulp 

Start Test

mocha

gulp mocha

mocha watch

gulp mocha.watch

Author

Daisuke Takayama Web帳

License

MIT

1.1.6

10 years ago

1.1.5

10 years ago

1.1.4

10 years ago

1.1.3

10 years ago

1.1.2

10 years ago

1.1.1

10 years ago

1.1.0

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago