Open lordcrekit opened 7 years ago
This is wonderful :shipit:
When you start the day reviewing code this nice, it sets you up for a great rest of the day. And as an bonus, I'm much more informed now.
Nice use of document.getElementsByClassName
:star:
@stuartpearman Can you take a look at this? It's hosted here and meets the following criteria:
localStorage
body
element is always up-to-date with the current theme (eitherday-theme
ornight-theme
) -- you can usedocument.body.setAttribute('class', 'some-class-name')
to set the class on thebody
day-theme
, the background of the website is light-colored, with a darker color for the textnight-theme
, the background of the website is a very dark color, with a lighter color for the text1
the first time)Should be good to go!