diff options
author | Sacha Chua <sacha@sachachua.com> | 2021-11-28 09:13:22 -0500 |
---|---|---|
committer | Sacha Chua <sacha@sachachua.com> | 2021-11-28 09:13:22 -0500 |
commit | 90459f28ebfd5f87ff994010db298571593c26cd (patch) | |
tree | ff5bf58a9b81fac49cd9e080fd7f282014fe753e /templates | |
parent | 2ac9fa58b50a70be40c3d2d860159edfa09e6317 (diff) | |
download | emacsconf-wiki-90459f28ebfd5f87ff994010db298571593c26cd.tar.xz emacsconf-wiki-90459f28ebfd5f87ff994010db298571593c26cd.zip |
Update
Diffstat (limited to '')
-rw-r--r-- | templates/page.tmpl | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/templates/page.tmpl b/templates/page.tmpl index 0b483c26..235d3aa9 100644 --- a/templates/page.tmpl +++ b/templates/page.tmpl @@ -80,18 +80,18 @@ mainVideo = document.getElementById("mainVideo"); qnaVideo = document.getElementById("qnaVideo"); timestamps = document.getElementsByClassName("time-link"); - let len = timestamps.length; + var len = timestamps.length; for (let i = 0; i < len; i++) { timestamps[i].onclick = function () { - const videoType = this.href.split("/").pop(); - const video = (videoType == "#mainVideo") ? mainVideo : qnaVideo; + videoType = this.href.split("/").pop(); + video = (videoType == "#mainVideo") ? mainVideo : qnaVideo; video.currentTime = parseSeconds(this.innerText) }; } - let handleSubtitleClick = function(event) { - let video = event.target.attributes['data-video'].value; - let start = event.target.attributes['data-start'].value - let videoElem = document.getElementById(video); + handleSubtitleClick = function(event) { + video = event.target.attributes['data-video'].value; + start = event.target.attributes['data-start'].value + videoElem = document.getElementById(video); if (videoElem) { videoElem.currentTime = parseSeconds(start); videoElem.scrollIntoView(); |