Skip to content

takayama-daisuke/countup-timer-js

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CountUpTimerJS

CountUpTimerJS - RealTime CountUp Timer JavaScript Library

これは何?

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

demo

デモページ

Quick start

Clone the repo:

git clone [email protected]: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

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 
Server started http://localhost:8088
LiveReload started on port 35729

Start Test

mocha

gulp mocha

mocha watch

gulp mocha.watch

Author

Daisuke Takayama Web帳

License

Copyright (c) 2016 Daisuke Takayama Released under the MIT license

About

Countup Timer JavaScript Library

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 77.6%
  • TypeScript 18.2%
  • HTML 3.3%
  • CSS 0.9%