1// jQuery(window).load(function () { 2 3// setTimeout(function(){ 4 var tag = document.createElement('script'); 5 6 tag.src = "https://www.youtube.com/iframe_api"; 7 var firstScriptTag = document.getElementsByTagName('script')[0]; 8 firstScriptTag.parentNode.insertBefore(tag, firstScriptTag); 9// }, 4000) 10 11 12 13 14// }) 15 16// 3. This function creates an <iframe> (and YouTube player) 17 // after the API code downloads. 18 var player; 19 function onYouTubeIframeAPIReady() { 20 var youTubeId=jQuery('#youtube_banner').attr("data-id") 21 player = new YT.Player('player', { 22 width: '100%', 23 videoId: youTubeId, 24 playerVars: { 'rel': 0,'showinfo':0, 'ecver':2, 'autoplay': 1, 'playsinline': 1,'controls': 0,'playlist': youTubeId,'loop': 1,'disablekb': 1,'origin': 'https://irishnationalstud.ie' }, 25 events: { 26 'onReady': onPlayerReady, 27 'onStateChange': function(event){ 28 event.target.playVideo(); 29 } 30 } 31 }); 32 } 33 34 // 4. The API will call this function when the video player is ready. 35 function onPlayerReady(event) { 36 event.target.mute(); 37 event.target.playVideo(); 38 }
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.