Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- $(window).on('action:widgets.loaded', function() {
- $('body').addClass('lights-out', enabled);
- localStorage.setItem('user:theme', enabled ? 'lights-out' : '');
- }
- });
- </script>
- <script>
- $('document').ready(function() {
- var theme = localStorage.getItem('user:theme');
- if (theme) {
- $('body').addClass(theme );
- }
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement