pub / yt2html

Fetches Youtube content via RSS and provides a chronological timeline
git clone https://src.jayvii.de/pub/yt2html.git
Home | Log | Files | Exports | Refs | README | RSS

commit 376ddf37289f000e0ad7f6550aad019f78e639a3
parent 8bd92f25b79950bc27256ec59b5a23f1273c97c0
Author: JayVii <jayvii[AT]posteo[DOT]de>
Date:   Tue, 22 Oct 2024 23:43:36 +0200

feat: focus player after initilising

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

diff --git a/assets/js/yt.js b/assets/js/yt.js @@ -47,6 +47,9 @@ function yt2html_toggle_player(index, video) { // inject player into video container section.querySelector(".player_container").prepend(player); + // Focus player + document.getElementById("player_" + index).focus(); + // Scroll to player document.location = "#video_" + index;