Web dev weekly: March 2, 2016 (Nishanth Shanmugham)
See it live. Needs Chrome 48 or higher.
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
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 .
The MIT License. © Copyright Nishanth Shanmugham