Skip to content

bootcamp-s18/js-digital-clock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

JavaScript Digital Clock

It's pretty simple to make a digital clock in JavaScript. Once you learn about the date object and setInterval, you're home free.

Suggestions for making it your own:

* Show times for more than one time zone. (Defaults to user's time zone right now.)
* Add AM/PM (make it a 12-hour clock instead of 24-hour...or better yet, make a button to flip display).
* Alarm clock?
* Add the date (day, month, year).
* STYLE IT, OBVS.
* Use geolocation to pull in more information.
* An ANALOG clock, mwahahahahah!
* Change the font for the time display: a monospace font will look more like a digital clock, and wouldn't jar your eye as the variable-width string is recentered every second.
* Tie this to the US debt clock.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published