sp-timer

0.0.4 • Public • Published

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

/sp-timer/

    Package Sidebar

    Install

    npm i sp-timer

    Weekly Downloads

    1

    Version

    0.0.4

    License

    MIT

    Last publish

    Collaborators

    • sparrowjang