commit 5155525fec4fdff947931e2dac59dee495237ec3 parent 81b1fd7fdd1e0b9da627f432ab058d4486a83e48 Author: JayVii <jayvii[AT]posteo[DOT]de> Date: Mon, 3 Jun 2024 12:51:13 +0200 Move darkmode toggle to designated button Diffstat:
M | index.php | | | 17 | ++++++++++------- |
1 file changed, 10 insertions(+), 7 deletions(-)
diff --git a/index.php b/index.php @@ -63,19 +63,22 @@ if (!$loading_screen) { <body class="list dark" onload="initialTheme();"> <main class="main"> - <h1> - Streams - <a title="Toggle Dark Mode" href="javascript:toggleTheme(set_mode = 1 - sessionStorage.getItem('dark-mode'));"> - <stretch id="darkmodetoggle">🌑</stretch> - <stretch id="lightmodetoggle">🌕</stretch> - </a> - </h1> + <h1>Streams</h1> <!-- Save Button --> <button class="button" onclick="<?php echo "document.cookie='streams=" . implode(",", $streams["stream"]) . ";path=/;max-age=31536000;';" ?>" style="<?php echo "color:" . $save_col; ?>"> 🖬 Save </button> + <!-- Dark Mode Button --> + <a href="javascript:toggleTheme(set_mode = 1 - sessionStorage.getItem('dark-mode'));"> + <button class="button" title="Toggle Dark Mode"> + <stretch id="darkmodetoggle" style="display:none;">🌑</stretch> + <stretch id="lightmodetoggle" style="display:inherit;">🌕</stretch> + Dark Mode + </button> + </a> + <!-- Reload Button --> <a href="<?php echo "/?streams=" . implode(",", $streams["stream"]); ?>"> <button class="button">