This repository has been archived on 2024-10-01. You can view files and clone it, but cannot push or open issues or pull requests.
badhouseplants-net-old/layouts/shortcodes/video.html
Nikolai Rodionov 8c825f7c84 Init Commit
Start following the GitFLow
2023-02-17 15:19:49 +01:00

24 lines
461 B
HTML

<div class="container">
<div id="{{ .Get 1 }}" class="{{ .Get 1 }}" align=center></div>
</div>
<script
type="text/javascript"
src="https://cdn.jsdelivr.net/npm/@clappr/player@latest/dist/clappr.min.js"
>
</script>
<script>
var playerElement = document.getElementById("{{ .Get 1 }}");
var player = new Clappr.Player({
source: {{ .Get 0 }},
mute: true,
height: 360,
width: 640
});
player.attachTo(playerElement);
</script>