0.0.4 • Published 10 years ago

sp-timer v0.0.4

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

spTimer

demo image

This is timer for countdown.

Install

bower install sp-timer

Install node modules

npm install

Support

  • IE7+
  • chrome
  • firefox

Usage

var timer = new sp.Timer( 86420000, {interval:1000} );

timer.addEventListener( "changed", function( timedelta ){
  //do something...
});
timer.start();

API

sp.Timer( countdown, opts ):Timer

Create a timer

sp.Timer.start() : void

Start a countdown.

sp.Timer.stop() : void

Stop a countdown.

DEMO

gulp server

Build

gulp
0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago