diff options
Diffstat (limited to 'webcards/scripts/theme.js')
-rw-r--r-- | webcards/scripts/theme.js | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/webcards/scripts/theme.js b/webcards/scripts/theme.js deleted file mode 100644 index e93f5b5..0000000 --- a/webcards/scripts/theme.js +++ /dev/null @@ -1,26 +0,0 @@ -'use strict'; - -class Theme{ - static theme = document.getElementById("theme"); - - static init() - { - if(Cookies.getCookie("theme") == ""){ - Cookies.setYearCookie("theme", "styles/themes/colors-base.css"); - } - } - - static restore() - { - Theme.init(); - Theme.theme.setAttribute("href", Cookies.getCookie("theme") + "?v=" + Date.now()); - } - - static set(sheet) - { - Cookies.setYearCookie("theme", sheet); - Theme.restore(); - } -} - -Theme.restore();
\ No newline at end of file |