Open bdpettway19 opened 7 years ago
Hey Barry,
Javascript doesn't like the way we added the paragraph to the body, and now the day and night buttons don't work. The best way to fix this is probably to add a paragraph to our HTML, and put the loaded_num
text into it with document.getElementById
I also definitely want to see the formatting cleaned up, if you don't have a javascript linter installed, read this slide about installing the JS Standard Linter.
Let me know if you have any questions :+1:
Ready to check!
:shipit:
@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)