Merge branch 'transcripts-support'
Some checks failed
Build and release container directly from master / release (push) Has been cancelled
Invidious CI / build - crystal: ${{ matrix.crystal }}, stable: ${{ matrix.stable }} (1.12.1, true) (push) Has been cancelled
Invidious CI / build - crystal: ${{ matrix.crystal }}, stable: ${{ matrix.stable }} (1.13.2, true) (push) Has been cancelled
Invidious CI / build - crystal: ${{ matrix.crystal }}, stable: ${{ matrix.stable }} (1.14.0, true) (push) Has been cancelled
Invidious CI / build - crystal: ${{ matrix.crystal }}, stable: ${{ matrix.stable }} (1.15.0, true) (push) Has been cancelled
Invidious CI / build - crystal: ${{ matrix.crystal }}, stable: ${{ matrix.stable }} (nightly, false) (push) Has been cancelled
Invidious CI / build-docker (push) Has been cancelled
Invidious CI / build-docker-arm64 (push) Has been cancelled
Invidious CI / lint (push) Has been cancelled

From: https://github.com/iv-org/invidious/pull/5298/
This commit is contained in:
Fijxu
2025-05-13 11:31:21 -04:00
8 changed files with 228 additions and 5 deletions

View File

@@ -197,4 +197,14 @@ addEventListener('load', function (e) {
}
});
document.getElementById("try-reddit-comments-link").onclick = swap_comments;
addEventListener("DOMContentLoaded", () => {
const transcriptLines = document.getElementById("lines");
for (const transcriptLine of transcriptLines.children) {
if (transcriptLine.nodeName != "A") continue
transcriptLine.addEventListener("click", (event) => {
event.preventDefault();
player.currentTime(transcriptLine.getAttribute('data-jump-time'));
})
}
})