pub / tw2html

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

commit 24bd9490c01a063fa07a6082f9cee8136cf0d28d
parent 016df8e96679cc3deb2adb1d072032042b5aec15
Author: JayVii <jayvii[AT]posteo[DOT]de>
Date:   Wed,  7 Aug 2024 11:56:23 +0200

fix: do not use a navbar in header

Diffstat:
Mindex.php | 54++++++++++++++++++++++++++----------------------------
1 file changed, 26 insertions(+), 28 deletions(-)

diff --git a/index.php b/index.php @@ -51,34 +51,32 @@ $streams = array( <body> <header> - <nav> - <h1>Streams</h1> - <!-- Save Button --> - <a - id="savebtn" - class="button" - href="#" - onclick="document.cookie='streams=<?php echo implode(",", $streams["stream"]); ?>;path=/;max-age=31536000;';document.querySelector('#savebtn').style.color='inherit';" - <?php - if (implode(",", $streams["stream"]) != $_COOKIE["streams"]) { - echo "style=color:#db4325"; - } - ?> - > - Save - </a> - <!-- Reload Button --> - <a - class="button" - href="<?php echo "/?streams=" . implode(",", $streams["stream"]); ?>" - > - Reload - </a> - <!-- Live pseudo-button --> - <a class="button" href="#streams"> - Live: <span id="num_streams">0</span> - </a> - </nav> + <h1>Streams</h1> + <!-- Save Button --> + <a + id="savebtn" + class="button" + href="#" + onclick="document.cookie='streams=<?php echo implode(",", $streams["stream"]); ?>;path=/;max-age=31536000;';document.querySelector('#savebtn').style.color='inherit';" + <?php + if (implode(",", $streams["stream"]) != $_COOKIE["streams"]) { + echo "style=color:#db4325"; + } + ?> + > + Save + </a> + <!-- Reload Button --> + <a + class="button" + href="<?php echo "/?streams=" . implode(",", $streams["stream"]); ?>" + > + Reload + </a> + <!-- Live pseudo-button --> + <a class="button" href="#streams"> + Live: <span id="num_streams">0</span> + </a> </header> <!-- Search Bar -->