Lab #42 Countdown Timer
Lab #42, consists of a webpage that has a timer. That's it. It's literally a web page used to keep track of time. There are also preset times set via buttons and if you click them, it will set a timer corresponding with that button. You can also manually enter a number of minutes to set a custom timer.
(Update from the screenshot: I changed the timer to the color black so it is easier to see, and the same goes for the time in which the timer will go off at).
To create a timer, I used multiple elements in JavaScript to get functions like real-time and using time functions to calculate the amount of time set, time that is left, and the time when the timer will actually go off. The timer is based on the real-time in which the functions wouldn't work if it couldn't get the current date and time. There are also functions that translate the minutes into hours or seconds depending on the amount entered into the timer. The estimated time the timer will go off is also accurate due to the actual time being used within this website.
Web designers could use this feature to allow users to pace themselves on your website if they need to complete a task quickly. Users can also use a timer on a webpage to just keep track of their time they need to complete a task, or it can be used as a game timer to keep track of how long the user has spent on the game. There is much more than a countdown timer can be used for, whether it is for real-world assignments or just simply to time a task to get it in on time.
(Update from the screenshot: I changed the timer to the color black so it is easier to see, and the same goes for the time in which the timer will go off at).
To create a timer, I used multiple elements in JavaScript to get functions like real-time and using time functions to calculate the amount of time set, time that is left, and the time when the timer will actually go off. The timer is based on the real-time in which the functions wouldn't work if it couldn't get the current date and time. There are also functions that translate the minutes into hours or seconds depending on the amount entered into the timer. The estimated time the timer will go off is also accurate due to the actual time being used within this website.
Web designers could use this feature to allow users to pace themselves on your website if they need to complete a task quickly. Users can also use a timer on a webpage to just keep track of their time they need to complete a task, or it can be used as a game timer to keep track of how long the user has spent on the game. There is much more than a countdown timer can be used for, whether it is for real-world assignments or just simply to time a task to get it in on time.

Comments
Post a Comment