Merge branch 'translated-video' of max.mehl/pmpc-website into master

lektura
Max Mehl 2017-09-19 12:31:30 +02:00 committed by Gogs
commit 42ef593820
1 changed files with 8 additions and 4 deletions

View File

@ -1,9 +1,13 @@
{{ $.Scratch.Set "langext" "" }}
{{ if and (or (eq .Lang "de") ) }}
{{ $.Scratch.Add "langext" (printf "_%s" .Lang) }}
{{ end }}
<center>
<video controls="controls" poster="/img/poster.jpg" crossorigin="crossorigin" width="100%">
<source src="https://download.fsfe.org/videos/pmpc/pmpc_desktop.mp4" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"' media="screen and (min-device-width:1000px)" />
<source src="https://download.fsfe.org/videos/pmpc/pmpc_desktop.webm" type='video/webm; codecs="vp9, opus"' media="screen and (min-device-width:1000px)" />
<source src="https://download.fsfe.org/videos/pmpc/pmpc_mobile.mp4" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"' media="screen and (max-device-width:999px)" />
<source src="https://download.fsfe.org/videos/pmpc/pmpc_mobile.webm" type='video/webm; codecs="vp9, opus"' media="screen and (max-device-width:999px)" />
<source src="https://download.fsfe.org/videos/pmpc/pmpc{{$.Scratch.Get "langext"}}_desktop.mp4" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"' media="screen and (min-device-width:1000px)" />
<source src="https://download.fsfe.org/videos/pmpc/pmpc{{$.Scratch.Get "langext"}}_desktop.webm" type='video/webm; codecs="vp9, opus"' media="screen and (min-device-width:1000px)" />
<source src="https://download.fsfe.org/videos/pmpc/pmpc{{$.Scratch.Get "langext"}}_mobile.mp4" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"' media="screen and (max-device-width:999px)" />
<source src="https://download.fsfe.org/videos/pmpc/pmpc{{$.Scratch.Get "langext"}}_mobile.webm" type='video/webm; codecs="vp9, opus"' media="screen and (max-device-width:999px)" />
<track src="https://publiccode.eu/video-subs/webvtt/pmpc_en.vtt" kind="subtitle" srclang="en" label="English" default="default">
<track src="https://publiccode.eu/video-subs/webvtt/pmpc_de.vtt" kind="subtitle" srclang="de" label="Deutsch">