diff options
author | Kyle Gunger <corechg@gmail.com> | 2020-09-18 12:22:26 -0400 |
---|---|---|
committer | Kyle Gunger <corechg@gmail.com> | 2020-09-18 12:22:26 -0400 |
commit | 9681347b8e9f6059c3f5f02528e0893bef5acca4 (patch) | |
tree | 16e5dff45804d13abeda17041668eff0485483c7 /webcards/scripts/theme.js | |
parent | 2ce432034eb35f763182de03fb7b42d2a07afc4b (diff) |
Move webcards to seperate repo
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 |