ilian6806 / Ticker

Simple interval sync tool

Home Page:https://ilian6806.github.io/Ticker/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ticker

Simple interval sync tool

Maintainability

Usage:

var ticker = new Ticker(1000); // This is the default value

var action = ticker.set(function () { /* do something */ }); // return action id

ticker.clear(action); // remove action by id and stop ticker if needed
ticker.clearAll();    // remove all actions and stop ticker interval

ticker.start(); // start ticker interval (called automatically with first set call)
ticker.tick();  // call all active actions on root object
ticker.stop();  // stop ticker interval (called automatically with last clear call and all clearAll calls)

About

Simple interval sync tool

https://ilian6806.github.io/Ticker/

License:MIT License


Languages

Language:JavaScript 56.5%Language:CSS 34.1%Language:HTML 9.4%