1var tag = document.createElement('script') 2tag.src = 'https://www.youtube.com/player_api' 3var firstScriptTag = document.getElementsByTagName('script')[0] 4firstScriptTag.parentNode.insertBefore(tag, firstScriptTag) 5 6var playerInfoList = [ 7 {width:'0', videoId:'lXMskKTw3Bc'}, 8 {width:'0', videoId:'Q3E7L_RoyTU'}, 9 {width: '0', videoId: 'KNtXIm5By04'}, 10 {width: '0', videoId: 'TX-6qPppbjY'}, 11 {width: '0', videoId: 'q6EoRBvdVPQ'}, 12 {width:'0', videoId: 'o2IeYyYYe1U'}, 13 {width:'0', videoId: '1LOoRJ0s0rw'}, 14 {width: '0', videoId: 'NwN7PMQtlo8'}, 15 {width: '0', videoId: '3hKRVsDPD9s'}, 16 {width: '0', videoId: '1Q6DdTcqGy8'}, 17 {width: '0', videoId: 'ksWKmF43AqM'} 18] 19for (var i = 0; i < playerInfoList; i++) { 20 playerInfoList[i].height = 0 21} 22function onYouTubeIframeAPIReady() { 23 for(var i = 0; i < playerInfoList.length;i++) { 24 var div = `<div class="iframe" id="${'tv' + i}"></div>` 25 $('#tv').append(div) 26 playerInfoList[i].id = 'tv' + i 27 var curplayer = createPlayer(playerInfoList[i]); 28 } 29} 30 31function createPlayer(playerInfo) { 32 return new YT.Player(playerInfo.id, { 33 height: playerInfo.height, 34 width: playerInfo.width, 35 videoId: playerInfo.videoId, 36 playerVars: { 37 autoplay: 0, // Auto-play the video on load 38 controls: 0, // Show pause/play buttons in player 39 showinfo: 1, // Hide the video title 40 modestbranding: 1, // Hide the Youtube Logo 41 loop: 0, // Run the video in a loop 42 fs: 1, // Hide the full screen button 43 cc_load_policy: 1, // Hide closed captions 44 iv_load_policy: 3, // Hide the Video Annotations 45 autohide: 0 // Hide video controls when playing 46 }, 47 events: { 48 onReady: function(e) { 49 e.target.playVideo() 50 // e.target.mute() 51 } 52 } 53 }) 54}
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.