Revision 1e0ab333 cloudcms/templates/content/intro_video.html
b/cloudcms/templates/content/intro_video.html | ||
---|---|---|
6 | 6 |
</div> |
7 | 7 |
|
8 | 8 |
<script> |
9 |
|
|
10 | 9 |
var video_settings = { |
11 | 10 |
'wrapper': $(".video-thumb"), |
12 | 11 |
'youtube_id': '{{ content.youtube_id}}', |
... | ... | |
16 | 15 |
var youtube = new YouTube(video_settings); |
17 | 16 |
window.youtube = youtube; |
18 | 17 |
} |
19 |
</script> |
|
18 |
|
|
19 |
// This code loads the IFrame Player API code asynchronously. |
|
20 |
var tag = document.createElement('script'); |
|
21 |
tag.src = "https://www.youtube.com/iframe_api"; |
|
22 |
var firstScriptTag = document.getElementsByTagName('script')[0]; |
|
23 |
firstScriptTag.parentNode.insertBefore(tag, firstScriptTag); |
|
24 |
</script> |
Also available in: Unified diff