From 94ee809f9ec4b7a47fd8c56857eee6cd7e48bfa1 Mon Sep 17 00:00:00 2001 From: Botond Hende Date: Sun, 8 Sep 2024 01:00:53 +0200 Subject: added extra theme --- assets/js/theme.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'assets/js/theme.js') diff --git a/assets/js/theme.js b/assets/js/theme.js index ffb6d48..9f1660c 100644 --- a/assets/js/theme.js +++ b/assets/js/theme.js @@ -1,5 +1,5 @@ "use strict" -const THEME_KEY = "used-theme"; +const THEME_KEY = "data-theme"; function updateTheme() { let theme = localStorage.getItem(THEME_KEY); @@ -13,4 +13,8 @@ function setTheme(theme) { updateTheme(); } +function setThemeExtend() { + document.documentElement.setAttribute("data-extended-theme", "true") +} + updateTheme(); \ No newline at end of file -- cgit v1.2.3-70-g09d2