diff options
author | Sacha Chua <sacha@sachachua.com> | 2021-11-24 02:13:32 -0500 |
---|---|---|
committer | Sacha Chua <sacha@sachachua.com> | 2021-11-24 02:13:32 -0500 |
commit | 4c643689f786c87c31f1138c84a842c887e4820d (patch) | |
tree | f9000c9a0b1eab65264867e7cff94426a7526434 | |
parent | d55aeee331ec03286bb76fbda2fe4a4e450508a6 (diff) | |
download | emacsconf-wiki-4c643689f786c87c31f1138c84a842c887e4820d.tar.xz emacsconf-wiki-4c643689f786c87c31f1138c84a842c887e4820d.zip |
fix cue change
-rw-r--r-- | templates/page.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
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"); |