summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorSacha Chua <sacha@sachachua.com>2021-11-24 02:10:53 -0500
committerSacha Chua <sacha@sachachua.com>2021-11-24 02:10:53 -0500
commit9730c31bffb4bd67c3db31d67965f874ba261a40 (patch)
tree47286be943e6fc574039449d04284cd81e608c59 /templates
parent8c386d06c34f665e0dc0d128a0c9f2d9a5c82a94 (diff)
downloademacsconf-wiki-9730c31bffb4bd67c3db31d67965f874ba261a40.tar.xz
emacsconf-wiki-9730c31bffb4bd67c3db31d67965f874ba261a40.zip
.. let's try setting the attribute?
Diffstat (limited to 'templates')
-rw-r--r--templates/page.tmpl3
1 files changed, 2 insertions, 1 deletions
diff --git a/templates/page.tmpl b/templates/page.tmpl
index 14c7fa40..a29d8531 100644
--- a/templates/page.tmpl
+++ b/templates/page.tmpl
@@ -354,7 +354,8 @@ transcriptDiv.appendChild(transcriptLink)
}
}
- document.querySelectorAll('track[kind=chapters]').forEach(function(e) { e.addEventListener('load', displayChapters); });
+ document.querySelectorAll('track[kind=chapters]').forEach(function(e) {
+ e.setAttribute(onLoad, 'displayChapters(this)'); });
// @license-end
</script>
</body>