diff options
author | Jonas Smedegaard <dr@jones.dk> | 2017-03-26 10:24:50 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2017-03-26 10:24:50 +0200 |
commit | 0a1d95aa722099a60d21e5c3a9868821501d19b8 (patch) | |
tree | 6dc62e11ca4b0b0edd222777f107628eca4d60e6 | |
parent | a0cbbbda98d0b07193f3e7be6acde5ce013ee8b6 (diff) |
Add optional name to video tag.
-rw-r--r-- | show.mdwn | 2 | ||||
-rw-r--r-- | templates/video.mdwn | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -1 +1 @@ -[[!template id=video title="Presentation"]] +[[!template id=video name="live-video" title="Presentation"]] diff --git a/templates/video.mdwn b/templates/video.mdwn index edb681b..f3d210b 100644 --- a/templates/video.mdwn +++ b/templates/video.mdwn @@ -1,12 +1,12 @@ <div class="video"> <h2><TMPL_VAR title></h2> <div class="videocontainer"> -<TMPL_IF stem><video playsinline autoplay muted poster="//media.couchdesign.dk/<TMPL_VAR stem>.jpg" controls> +<TMPL_IF stem><video <TMPL_IF name>id="<TMPL_VAR name>"</TMPL_IF> playsinline autoplay muted poster="//media.couchdesign.dk/<TMPL_VAR stem>.jpg" controls> <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><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." /> -<TMPL_ELSE><video playsinline autoplay muted controls> +<TMPL_ELSE><video <TMPL_IF name>id="<TMPL_VAR name>"</TMPL_IF> playsinline autoplay muted controls> </TMPL_IF></video> </div> </div> |