Skip to content

ambozz/timer.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

timer.js

Simple JavaScript Script for a Timer.

Usage:

Pattern: %s = Second %m = Minute %h = Hour

How to start the Timer:

timer.start("Pattern when running", "Id of HTML element, Text Element", bool if code automatically uses 2 digits, "Text when not running");
timer.start("%h:%m:%s", "id", true, "00:00:00");

How to pause the Timer:

timer.pause();

How to resume the Timer:

timer.resume();

How to stop & reset the Timer:

timer.stop();

About

Simple JavaScript Script for a Timer.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published