summaryrefslogtreecommitdiff
path: root/webcards/scripts/theme.js
diff options
context:
space:
mode:
authorKyle Gunger <corechg@gmail.com>2020-09-18 12:22:26 -0400
committerKyle Gunger <corechg@gmail.com>2020-09-18 12:22:26 -0400
commit9681347b8e9f6059c3f5f02528e0893bef5acca4 (patch)
tree16e5dff45804d13abeda17041668eff0485483c7 /webcards/scripts/theme.js
parent2ce432034eb35f763182de03fb7b42d2a07afc4b (diff)
Move webcards to seperate repo
Diffstat (limited to 'webcards/scripts/theme.js')
-rw-r--r--webcards/scripts/theme.js26
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