Re:Automatically Add Loading Bars to Your Website
by publicfig on Friday September 20, 2013 @03:59PM
(#6420125)
I'm actually very curious on how they build in the color picker into the site to designate the site's colors. Anyone have any knowledge on this?
[ Parent
| on HN ]
Re:Automatically Add Loading Bars to Your Website
by zackbloom on Friday September 20, 2013 @04:05PM
(#6420165)
Sure, it's an input type="color" with some css applied to it. On webkit, it becomes a picker, on other browsers, just a text input.
When it is changed, we loop through various elements and change their background color. The way the themes are generated is a little more complicated, but I don't think that's what you're asking about.