diff options
author | Sacha Chua <sacha@sachachua.com> | 2021-11-24 02:12:02 -0500 |
---|---|---|
committer | Sacha Chua <sacha@sachachua.com> | 2021-11-24 02:12:02 -0500 |
commit | d55aeee331ec03286bb76fbda2fe4a4e450508a6 (patch) | |
tree | c6fdae077eb92a68e76424e0a6d3bf3a462a596a /templates | |
parent | 9730c31bffb4bd67c3db31d67965f874ba261a40 (diff) | |
download | emacsconf-wiki-d55aeee331ec03286bb76fbda2fe4a4e450508a6.tar.xz emacsconf-wiki-d55aeee331ec03286bb76fbda2fe4a4e450508a6.zip |
Let's try the event listener again
Diffstat (limited to 'templates')
-rw-r--r-- | templates/page.tmpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/page.tmpl b/templates/page.tmpl index a29d8531..4683c137 100644 --- a/templates/page.tmpl +++ b/templates/page.tmpl @@ -354,8 +354,8 @@ transcriptDiv.appendChild(transcriptLink) } } - document.querySelectorAll('track[kind=chapters]').forEach(function(e) { - e.setAttribute(onLoad, 'displayChapters(this)'); }); + document.querySelectorAll('track[kind=chapters]').forEach(function(e) { e.addEventListener('load', function() { displayChapters(e); });}); + // @license-end </script> </body> |