diff options
author | Sacha Chua <sacha@sachachua.com> | 2021-11-24 02:10:53 -0500 |
---|---|---|
committer | Sacha Chua <sacha@sachachua.com> | 2021-11-24 02:10:53 -0500 |
commit | 9730c31bffb4bd67c3db31d67965f874ba261a40 (patch) | |
tree | 47286be943e6fc574039449d04284cd81e608c59 | |
parent | 8c386d06c34f665e0dc0d128a0c9f2d9a5c82a94 (diff) | |
download | emacsconf-wiki-9730c31bffb4bd67c3db31d67965f874ba261a40.tar.xz emacsconf-wiki-9730c31bffb4bd67c3db31d67965f874ba261a40.zip |
.. let's try setting the attribute?
Diffstat (limited to '')
-rw-r--r-- | templates/page.tmpl | 3 |
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> |