Wednesday, 5 December 2012

CountDown Timer

Here is an simple CountDown timer which is done javascript. The idea behind is refreshing the canvas on every call of setInterval( ) which is set for 1000ms.
     There are three button which are "SET" , "START", "STOP". The set button calls the function time which draws the value from the textfield on to the canvas. The start button calls the timer function in which setInterval() is called for decrementing and displaying on canvas. The stop button is for calling clearInterval() to stop the running timer.

Here is the Timer

STOP     =>  Stop Timer  
START   =>   To start the timer
SET       =>   To set the initial value
Initial Value: MIN:: SEC::

No comments:

Post a Comment