SHARE
TWEET

Untitled

a guest Feb 16th, 2020 75 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $(document).ready(function(){if(localStorage.theme) {$('#wrapper').addClass( localStorage.theme );} else{$('#wrapper').addClass('light-mode');} $("#theme-toggler").click(function(){if ($('#wrapper').hasClass( 'light-mode')){$('#wrapper').removeClass('light-mode').addClass('night-mode'); localStorage.theme = 'night-mode';} else { $('#wrapper').removeClass('night-mode').addClass('light-mode'); localStorage.theme = 'light-mode'; } }); });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top