huxpro.github.io icon indicating copy to clipboard operation
huxpro.github.io copied to clipboard

add night mode selection with .yml file configurable

Open decaywood opened this issue 8 years ago • 4 comments

if u set the nightMode value as true in .yml config file, the night mode js code will appear in footer.html file,otherwise it's just the same as the old version.

decaywood avatar Jan 17 '16 08:01 decaywood

imported the dependency of AmazeUI lib to operate cookie in a easy way,if u dun wanna add additional lib,please modify the js code at line 144 in footer.html

decaywood avatar Jan 17 '16 08:01 decaywood

@decaywood Thanks! The night mode is nice.

But, the import of Amaze UI is definitely needless. It increase 57.3 kb gzipped only for a cookie operation!

There is a HTML5 local storage for that. U should have a try.

Huxpro avatar Jan 27 '16 06:01 Huxpro

@Huxpro dependency of AmazeUI has been removed

lacking of expired time may be the main reason why i give up the local storage : ) finally, cookie works as well.

decaywood avatar Jan 29 '16 10:01 decaywood

Why was this pr abandoned? I can't figure out how to set the background to black (I don't really know anything about css)

theoptimalpolicy avatar Dec 04 '20 21:12 theoptimalpolicy