root / cloudcms / templates / content / intro_video.html @ 9c910f81
History | View | Annotate | Download (459 Bytes)
1 |
<a href="#" id="stop-youtube" title="hide video">X</a> |
---|---|
2 |
<div class="video-thumb"> |
3 |
<a href="#" class="play">play</a> |
4 |
<img src="{{ content.image.get_absolute_url }}" alt=""> |
5 |
<div class="player-placeholder"></div> |
6 |
</div>
|
7 |
|
8 |
<script>
|
9 |
|
10 |
var video_settings = {
|
11 |
'wrapper': $(".video-thumb"),
|
12 |
'youtube_id': '{{ content.youtube_id}}',
|
13 |
};
|
14 |
|
15 |
function onYouTubeIframeAPIReady() {
|
16 |
var youtube = new YouTube(video_settings);
|
17 |
window.youtube = youtube;
|
18 |
}
|
19 |
</script>
|