summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2017-03-24 13:30:53 +0100
committerJonas Smedegaard <dr@jones.dk>2017-03-24 13:30:53 +0100
commit721e075740b7dbe07908673070caf28e97aae610 (patch)
tree2321ea7e780d29d126e5c9b6f17c9b8c32e3958a
parent20206b5ac7346f37837d1005ce411615b8a7cf1e (diff)
Add draft show page.
-rw-r--r--show.mdwn1
-rw-r--r--templates/video.mdwn9
2 files changed, 10 insertions, 0 deletions
diff --git a/show.mdwn b/show.mdwn
new file mode 100644
index 0000000..e1f0cd6
--- /dev/null
+++ b/show.mdwn
@@ -0,0 +1 @@
+[[!template id=video title="Presentation" stem=omni/show0 width=640 height=360]]
diff --git a/templates/video.mdwn b/templates/video.mdwn
new file mode 100644
index 0000000..63400de
--- /dev/null
+++ b/templates/video.mdwn
@@ -0,0 +1,9 @@
+<div class="video">
+<h2><TMPL_VAR title></h2>
+<video playsinline autoplay muted loop poster="//media.couchdesign.dk/<TMPL_VAR stem>.jpg">
+<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." />
+</video>
+</div>