https://github.com/languagexange/cooltimer
Timer
https://github.com/languagexange/cooltimer
Last synced: 3 months ago
JSON representation
Timer
- Host: GitHub
- URL: https://github.com/languagexange/cooltimer
- Owner: LanguageXange
- Created: 2019-04-03T16:53:34.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-05-23T02:44:03.000Z (about 5 years ago)
- Last Synced: 2025-01-08T18:13:24.856Z (5 months ago)
- Language: JavaScript
- Homepage:
- Size: 24.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## View live demo at : https://languagexange.github.io/CoolTimer/
Reminder / Tips:
- make sure to put a string "0" when it's less than 10 seconds (e.g. display as 01:05 rather than 01:5)
- two javascript files: countdown.js use vanilla js while script.js use jQuery
- If users enter invalid number (e.g. negative or greater than 60) for seconds, alert the users and make sure the timer display correctly
- countdown.js code copied from JS30 project by Wes Bos (check out his tutorial to learn more about how timer is made!)
- add a function to freeze / unfreeze the input once users start the timer
- understand the logic behind how start/stop/pause buttons work and make sure to disable stop/pause buttons when users haven't started the timer.To do:
- incorporate two js files together