diff options
Diffstat (limited to 'static')
-rw-r--r-- | static/images/favicon.png | bin | 1162 -> 0 bytes | |||
-rw-r--r-- | static/images/logo.png | bin | 1162 -> 0 bytes | |||
-rw-r--r-- | static/js/theme.js | 22 |
3 files changed, 0 insertions, 22 deletions
diff --git a/static/images/favicon.png b/static/images/favicon.png Binary files differdeleted file mode 100644 index 596fb43..0000000 --- a/static/images/favicon.png +++ /dev/null diff --git a/static/images/logo.png b/static/images/logo.png Binary files differdeleted file mode 100644 index 596fb43..0000000 --- a/static/images/logo.png +++ /dev/null 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 |