commit 0df26c53d9c27096d584c13819ca48441c3910e5 parent 3bed1066e4e73c4791bcb7076ae6eb684ba20f77 Author: JayVii <jayvii[AT]posteo[DOT]de> Date: Mon, 21 Oct 2024 17:38:47 +0200 fix: layout changes Diffstat:
M | assets/js/twitch.js | | | 3 | +++ |
M | index.php | | | 13 | ++++++++++--- |
2 files changed, 13 insertions(+), 3 deletions(-)
diff --git a/assets/js/twitch.js b/assets/js/twitch.js @@ -126,6 +126,9 @@ function tw2html_toggle_player(stream) { // inject player into stream container section.querySelector(".player_container").prepend(player); + // Scroll to player + document.location = "#stream_" + stream; + } } diff --git a/index.php b/index.php @@ -110,9 +110,7 @@ <!-- Headline: streamer name --> <h2> - <a href="https://www.twitch.tv/<?php echo $stream; ?>" target="_blank"> - <?php echo $stream; ?> - </a> + <?php echo $stream; ?> </h2> <!-- player Container --> @@ -130,6 +128,15 @@ <button onclick="tw2html_toggle_player('<?php echo $stream; ?>')"> Toggle Stream </button> + <a + class="button" + href="https://www.twitch.tv/<?php echo $stream; ?>" + target="_blank" + > + Open on Twitch + </a> + + <!-- Chat Collapsable --> <details class="button">