summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2017-05-15 09:13:09 +0200
committerJonas Smedegaard <dr@jones.dk>2017-05-15 09:13:09 +0200
commitc11bd74cb2b9969ffdbcea9bdd31833d32a7ebef (patch)
treefb00cc1e3bb70ef5308eb2f2d654cc80c469d824
parent001fc393d91b3a49b8218c7e638f5109241d6c7b (diff)
Rename video template argument name → live-app. Fix use app name as element id.
-rw-r--r--live.mdwn2
-rw-r--r--livetest.mdwn2
-rw-r--r--templates/video.mdwn6
3 files changed, 5 insertions, 5 deletions
diff --git a/live.mdwn b/live.mdwn
index 444aa55..942d4ce 100644
--- a/live.mdwn
+++ b/live.mdwn
@@ -2,7 +2,7 @@
[[!meta script="/usr/share/javascript/bootstrap/js/bootstrap.min.js"]]
[[!template id=video
- name="live-video"
+ live-app="live-video"
title="FREE Live Webinar"
start="1494946800000"
stem=omni/show0
diff --git a/livetest.mdwn b/livetest.mdwn
index 10047df..f8528d4 100644
--- a/livetest.mdwn
+++ b/livetest.mdwn
@@ -2,7 +2,7 @@
[[!meta script="/usr/share/javascript/bootstrap/js/bootstrap.min.js"]]
[[!template id=video
- name="live-video-test"
+ live-app="live-video-test"
title="FREE Live Webinar"
start="1494835200000"
stem=omni/live/latest
diff --git a/templates/video.mdwn b/templates/video.mdwn
index 6eef60f..4db2676 100644
--- a/templates/video.mdwn
+++ b/templates/video.mdwn
@@ -5,16 +5,16 @@
<script type="text/javascript" src="/js/app/counter.js"></script>
</TMPL_IF>
<div class="embed-responsive embed-responsive-16by9">
-<video <TMPL_IF name>id="<TMPL_VAR name>"</TMPL_IF> class="embed-responsive-item" playsinline poster="//media.couchdesign.dk/<TMPL_VAR stem>.jpg" controls>
+<video <TMPL_IF live-app>id="<TMPL_VAR live-app>"</TMPL_IF> class="embed-responsive-item" playsinline poster="//media.couchdesign.dk/<TMPL_VAR stem>.jpg" controls>
<TMPL_UNLESS start>
<TMPL_UNLESS nomp4><source src="//media.couchdesign.dk/<TMPL_VAR stem>.webm" type="video/webm" />
</TMPL_UNLESS><TMPL_UNLESS nowebm><source src="//media.couchdesign.dk/<TMPL_VAR stem>.mp4" type="video/mp4" />
</TMPL_UNLESS></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_IF start>
+<TMPL_IF live-app>
[[!meta script="/js/lib/adapterjs.min.js"]]
[[!meta script="/js/lib/janus.nojquery.js"]]
-<script type="text/javascript" src="/js/app/live-video.js"></script>
+<script type="text/javascript" src="/js/app/<TMPL_VAR live-app>.js"></script>
</TMPL_IF></div>
</div>