From 9681347b8e9f6059c3f5f02528e0893bef5acca4 Mon Sep 17 00:00:00 2001 From: Kyle Gunger Date: Fri, 18 Sep 2020 12:22:26 -0400 Subject: Move webcards to seperate repo --- webcards/scripts/theme.js | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 webcards/scripts/theme.js (limited to 'webcards/scripts/theme.js') 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 -- cgit v1.2.3