Skip to content
Snippets Groups Projects
scriptSubPages.js 411 B
Newer Older
  • Learn to ignore specific revisions
  •   if (localStorage) {
        var theme = localStorage.getItem('theme');
        if (theme != null) {
          if ((theme.match(/,/g) || []).length != 3) {
            localStorage.removeItem('theme');
          } else {
            theme = theme.split(',');
    
            document.getElementById('theme').setAttribute('href', '/css/theme.css.php?r=' + theme[0] + '&g=' + theme[1] + '&b=' + theme[2] + '&a=' + theme[3]);