MediaWiki:Common.js: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 439: Line 439:


     if (getCookie('elwiki-dark-mode') == 'true') $('body').addClass('dark-mode');
     if (getCookie('elwiki-dark-mode') == 'true') $('body').addClass('dark-mode');
     if (getCookie('not-new') == 'true') $('#dark-mode-switch').addClass('new');
     if (getCookie('not-new') == null) $('#dark-mode-switch').addClass('new');


});
});