I'm starting from this snippet:
jQuery('.dark-mode').on( 'click', function() {
jQuery("body").toggleClass('dark');
SEMICOLON.header.logo();
Cookies.set('canvas-color-scheme', 'dark');
return false;
});
if( Cookies.get('canvas-color-scheme') == 'dark' ) {
jQuery('body').addClass( 'dark' );
SEMICOLON.header.logo();
}But my case is different: I'm starting with a dark body class and users should be able to switch to a light body class.
Can you provide the code for this functionality?
