Skip to content

txcsmad/js-color-clock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Web dev weekly: March 2, 2016 (Nishanth Shanmugham)

See it live. Needs Chrome 48 or higher.

What is it?

Digital clock that changes color each second according to the hex color code of the current time.

For example: the time 12:00:34 PM corresponds to the hex code #120034, which is a dark shade of blue as shown in the screen shot.

The code:

  • uses ES6 classes and arrow functions
  • is simple and readable
  • is modular and pays attention to some minor performance improvements

http://i.imgur.com/OtGh5na.png

Setup

Clone the repo:

$ git clone https://github.com/txcsmad/js-color-clock.git

Switch into the directory:

$ cd js-color-clock

Finally, open index.html in your browser.

Or if you have http-server installed, run:

$ http-server .

License

The MIT License. © Copyright Nishanth Shanmugham

About

Digital clock that changes color each second (Chrome 48+)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published