That’s odd—if I’m understanding it correctly it’ll leave the page unchanged unless you click one of the links or have a cookie set. But it’s not handling the default case explicitly, so try replacing the $(document).ready section in the code above with this:
var defaultColorScheme = "whiteOnBlack";
$(document).ready(function()
{
var cookie = getCookie("colorScheme");
if(cookie && cookie != "")
setColorScheme(cookie);
else
setColorScheme(defaultColorScheme);
});
To see what first-time visitors would see, clear your cookies. Otherwise it should remember what color it was last time.
That’s odd—if I’m understanding it correctly it’ll leave the page unchanged unless you click one of the links or have a cookie set. But it’s not handling the default case explicitly, so try replacing the $(document).ready section in the code above with this:
To see what first-time visitors would see, clear your cookies. Otherwise it should remember what color it was last time.
Thanks again! :D