summaryrefslogtreecommitdiff
path: root/themes/emily_zola_theme/static/js/theme.js
diff options
context:
space:
mode:
authorgarhve <git@garhve.com>2023-02-14 18:29:13 +0800
committergarhve <git@garhve.com>2023-02-14 18:29:13 +0800
commit734f042c9d99e0110d5e4cf8f2994a5ce27385d1 (patch)
tree4b825dc642cb6eb9a060e54bf8d69288fbee4904 /themes/emily_zola_theme/static/js/theme.js
parent92e08c404fa53f304dec7490c4acb4b45dd0d7df (diff)
delete zola
Diffstat (limited to 'themes/emily_zola_theme/static/js/theme.js')
-rw-r--r--themes/emily_zola_theme/static/js/theme.js22
1 files changed, 0 insertions, 22 deletions
diff --git a/themes/emily_zola_theme/static/js/theme.js b/themes/emily_zola_theme/static/js/theme.js
deleted file mode 100644
index be2a9d1..0000000
--- a/themes/emily_zola_theme/static/js/theme.js
+++ /dev/null
@@ -1,22 +0,0 @@
-const key = 'current_emily_zola_style';
-
-function getTheme() {
- let theme = document.getElementById('stylesheet');
- let current_style = localStorage.getItem(key);
- if (current_style === null) {
- localStorage.setItem(key, theme.href);
- }
- theme.href = localStorage.getItem(key);
-}
-
-function changeTheme() {
- let current_style = localStorage.getItem(key);
- if (current_style.includes('dark')) {
- localStorage.setItem(key, '/light.css');
- }
- else {
- localStorage.setItem(key, '/dark.css');
- }
- let theme = document.getElementById('stylesheet');
- theme.href = localStorage.getItem(key);
-} \ No newline at end of file