add video shortcode
This commit is contained in:
parent
cb3df73d53
commit
74e7041f2a
1 changed files with 19 additions and 0 deletions
19
layouts/shortcodes/video.html
Normal file
19
layouts/shortcodes/video.html
Normal file
|
@ -0,0 +1,19 @@
|
|||
<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