summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorSacha Chua <sacha@sachachua.com>2021-11-24 02:13:32 -0500
committerSacha Chua <sacha@sachachua.com>2021-11-24 02:13:32 -0500
commit4c643689f786c87c31f1138c84a842c887e4820d (patch)
treef9000c9a0b1eab65264867e7cff94426a7526434 /templates
parentd55aeee331ec03286bb76fbda2fe4a4e450508a6 (diff)
downloademacsconf-wiki-4c643689f786c87c31f1138c84a842c887e4820d.tar.xz
emacsconf-wiki-4c643689f786c87c31f1138c84a842c887e4820d.zip
fix cue change
Diffstat (limited to 'templates')
-rw-r--r--templates/page.tmpl2
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");