Guest User

Untitled

a guest
Aug 14th, 2015
269
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script>
  2. $(window).on('action:widgets.loaded', function() {
  3.     $('body').addClass('lights-out',  enabled);
  4.     localStorage.setItem('user:theme', enabled ?  'lights-out' : '');          
  5.   }
  6. });
  7. </script>
  8.  
  9.  
  10. <script>
  11. $('document').ready(function() {
  12.     var theme = localStorage.getItem('user:theme');
  13.     if (theme) {
  14.         $('body').addClass(theme );
  15.     }
  16. });
  17. </script>
RAW Paste Data