Skip to content

Latest commit

 

History

History
29 lines (24 loc) · 516 Bytes

File metadata and controls

29 lines (24 loc) · 516 Bytes

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();