From 734f042c9d99e0110d5e4cf8f2994a5ce27385d1 Mon Sep 17 00:00:00 2001 From: garhve Date: Tue, 14 Feb 2023 18:29:13 +0800 Subject: delete zola --- static/images/favicon.png | Bin 1162 -> 0 bytes static/images/logo.png | Bin 1162 -> 0 bytes static/js/theme.js | 22 ---------------------- 3 files changed, 22 deletions(-) delete mode 100644 static/images/favicon.png delete mode 100644 static/images/logo.png delete mode 100644 static/js/theme.js (limited to 'static') diff --git a/static/images/favicon.png b/static/images/favicon.png deleted file mode 100644 index 596fb43..0000000 Binary files a/static/images/favicon.png and /dev/null differ diff --git a/static/images/logo.png b/static/images/logo.png deleted file mode 100644 index 596fb43..0000000 Binary files a/static/images/logo.png and /dev/null differ diff --git a/static/js/theme.js b/static/js/theme.js deleted file mode 100644 index be2a9d1..0000000 --- a/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 -- cgit v1.2.3-70-g09d2