Skip to content

Latest commit

 

History

History
45 lines (27 loc) · 1.15 KB

README.md

File metadata and controls

45 lines (27 loc) · 1.15 KB

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