pub / tw2html

Checks online status of streams on twitch.tv and lets you watch them
git clone https://src.jayvii.de/pub/tw2html.git
Home | Log | Files | Exports | Refs | README | RSS

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:
Mindex.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">&#127761;</stretch> - <stretch id="lightmodetoggle">&#127765;</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; ?>"> &#128428; 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;">&#127761;</stretch> + <stretch id="lightmodetoggle" style="display:inherit;">&#127765;</stretch> + Dark Mode + </button> + </a> + <!-- Reload Button --> <a href="<?php echo "/?streams=" . implode(",", $streams["stream"]); ?>"> <button class="button">