diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/page.tmpl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/templates/page.tmpl b/templates/page.tmpl index f93afdfc..6647f03a 100644 --- a/templates/page.tmpl +++ b/templates/page.tmpl @@ -299,11 +299,14 @@ Last edited <TMPL_VAR MTIME> var transcriptLink = document.createElement('a'); transcriptLink.setAttribute('href', '#transcript'); transcriptLink.textContent = 'View transcript'; - var resources = document.querySelector('video[id="mainVideo"]').closest('.vid').querySelector('.resources'); +var video = document.querySelector('.mainVideo video'); +if (video) { + var resources = document.querySelector('.mainVideo video').closest('.vid').querySelector('.resources'); var transcriptDiv = document.createElement('div'); transcriptDiv.appendChild(transcriptLink) if (resources) { resources.prepend(transcriptDiv); } } +} if (document.querySelector('.chat-iframe')) { document.querySelector('.chat-iframe').innerHTML = '<iframe src="https://chat.emacsconf.org" height="600" width="100%"></iframe>'; } |