From 4c643689f786c87c31f1138c84a842c887e4820d Mon Sep 17 00:00:00 2001 From: Sacha Chua Date: Wed, 24 Nov 2021 02:13:32 -0500 Subject: fix cue change --- templates/page.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates') diff --git a/templates/page.tmpl b/templates/page.tmpl index 4683c137..0b483c26 100644 --- a/templates/page.tmpl +++ b/templates/page.tmpl @@ -342,7 +342,7 @@ transcriptDiv.appendChild(transcriptLink) textTrack.addEventListener("cuechange", function() { var currentLocation = this.activeCues[0].startTime; - if (chapter = chapterList.querySelector('data-start=["' + currentLocation + '"]')) { + if (chapter = chapterList.querySelector('li[data-start="' + currentLocation + '"]')) { var locations = [].slice.call(chapterList.querySelectorAll("li")); for (var i = 0; i < locations.length; ++i) { locations[i].classList.remove("current"); -- cgit v1.2.3