initial commit
This commit is contained in:
commit
ca6a4d45d1
113 changed files with 10501 additions and 0 deletions
22
layouts/shortcodes/video.html
Normal file
22
layouts/shortcodes/video.html
Normal file
|
@ -0,0 +1,22 @@
|
|||
<div class="container">
|
||||
<div id="player-wrapper" class="{{ .Get 1 }}"></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("player-wrapper");
|
||||
|
||||
var player = new Clappr.Player({
|
||||
source: {{ .Get 0 }},
|
||||
mute: true,
|
||||
height: 360,
|
||||
width: 640
|
||||
});
|
||||
|
||||
player.attachTo(playerElement);
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue