summaryrefslogtreecommitdiff
path: root/templates/video.mdwn
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2017-03-26 18:30:48 +0200
committerJonas Smedegaard <dr@jones.dk>2017-03-26 18:34:35 +0200
commit28edf834d27474792fd7508ef37173c59d1d2737 (patch)
tree05521e67f09db9b80593ec5ccbebf0cc6d9eb69d /templates/video.mdwn
parentcf960f4d35b79bfb82cc43cb7c176d746551869e (diff)
Load countdown.js as needed.
Diffstat (limited to 'templates/video.mdwn')
-rw-r--r--templates/video.mdwn5
1 files changed, 4 insertions, 1 deletions
diff --git a/templates/video.mdwn b/templates/video.mdwn
index 0b914b1..c19ef97 100644
--- a/templates/video.mdwn
+++ b/templates/video.mdwn
@@ -7,7 +7,10 @@
</TMPL_UNLESS><img src="//media.couchdesign.dk/<TMPL_VAR stem>.jpg" width="<TMPL_VAR width>" height="<TMPL_VAR height>"
title="Sorry, the video formats provided are not supported by your browser." />
</video>
-<TMPL_ELSE><TMPL_IF start><div id="counter" class="well"></div></TMPL_IF>
+<TMPL_ELSE><TMPL_IF start><div id="counter" class="well"></div>
+[[!meta script="/js/lib/countdown.js"]]
+<script type="text/javascript" src="/js/app/counter.js"></script>
+</TMPL_IF>
<video <TMPL_IF name>id="<TMPL_VAR name>"</TMPL_IF> playsinline autoplay muted controls />
[[!meta script="/js/lib/janus.nojquery.js"]]
<script type="text/javascript" src="/js/app/live-video.js"></script>