Skip to content
This repository has been archived by the owner on May 15, 2021. It is now read-only.

skfriese/timer-control

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

timer-control

TimerControl - A basic Javascript timer class

Usage

var timer = new TimerControl(this);
timer.start({
    duration:5000,
    interval:10,
    onCompletedCb:function(){
        someFunction();
    },
    onIntervalCb:function(elapsed,remaining){
        someOtherFunction(elapsed,remaining);
    }
});

For an in-depth example of how to use the class, check out the implementation inside the "timer-control-test.htm" file.

About

TimerControl - A basic Javascript timer class

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published