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 c378e9bf4a1a9da0cd537e37926f0f4aba0c51bf
parent 5febfab6e253ff23085f7bf6e4ac4346108a47bc
Author: JayVii <jayvii[AT]posteo[DOT]de>
Date:   Tue, 22 Oct 2024 23:42:43 +0200

feat: focus player after initilising

Diffstat:
Massets/js/twitch.js | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/assets/js/twitch.js b/assets/js/twitch.js @@ -124,6 +124,9 @@ function tw2html_toggle_player(stream) { // inject player into stream container section.querySelector(".player_container").prepend(player); + // Focus player + document.getElementById("player_" + stream).focus(); + // Scroll to player document.location = "#stream_" + stream;