Skip to content

naymic/timer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Plain Javascript Timer with countdown clock

This timer is able to show the countdown time and executes a funcion callback on timeout.

Instructions

1. Create a new Timer object by passing the timeout time in seconds, a callback function to execute when timer finished and a HTML element to show the timer somewhere.

var test = new Timer( <seconds>, <callback_function>, <HTML_element>);

2. Run timer to show the coundown clock somewhere

test.run();

Autor

Micha Meier

Features

  • Function callback on timeout
  • Shows countdown time

Testing

Have a look at Plunker: https://embed.plnkr.co/XKePzB/

About

Simple Plain Javascript Timer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published