hofstra / drc

Website for the Hofstra Digital (Humanities) Research Center
http://hofstradrc.org
Other
1 stars 2 forks source link

Investigate: add a color contrast toggle to the site #5

Open jamiefolsom opened 7 years ago

jamiefolsom commented 7 years ago

Based on Access Scholar's recommendation. Research, and update this issue with a proposal. Timebox: 1 hour.

feralresearch commented 7 years ago

I have one of these on my personal site (Click the eyeball icon at the top of http://digitalscenographic.com/).

This is very straightforward vanilla javascript: swap the stylesheets on request.

The challenge is to persist the change across visits. In my case I used HTML5 Web Storage which is also very straightforward: https://www.w3schools.com/html/html5_webstorage.asp

It seems widely supported: https://caniuse.com/#search=localstor

Would this be ok for our site? The work would mostly be creating the stylesheet.

jamiefolsom commented 7 years ago

👍 Love this idea. I don't see it in action on your site, but fine by me to try it out, and see how people like it.

SteveMarvin commented 7 years ago

I don't see how to test this. Is it implemented?

feralresearch commented 7 years ago

@SteveMarvin Sorry I think I just put this in the wrong lane, still learning the ropes - this is in this PR: https://github.com/hofstra/drc/pull/11

SteveMarvin commented 6 years ago

working