ID:2704257
 
Applies to:Website
Status: Open

Issue hasn't been assigned a status value.
The web reference has a dark mode. It's nice.

What's not nice is having to click the lightbulb toggle button to turn it on each time I open it.

I open the web ref quite a bit, and it'd be neat if my choice of dark mode (or not) was saved when I opened it up and it automatically loaded my most recent choice.

Save the clicks!
cookies please!

edit:
function setCookie(cname, cvalue, exdays) {
cvalue = escaper(cvalue);
var d = new Date();
d.setTime(d.getTime() + (exdays*24*60*60*1000));
var expires = 'expires='+d.toUTCString();
var cookie = cname + '=' + cvalue + '; ' + expires + '; path=/';
document.cookie = cookie;
}

function getCookie(cname) {
var name = cname + '=';
var ca = document.cookie.split(';');
for(var i=0; i < ca.length; i++) {
var c = ca[i];
while (c.charAt(0)==' ') c = c.substring(1);
if (c.indexOf(name) === 0) {
return decoder(c.substring(name.length,c.length));
}
}
return '';
}

there, brr