1var ytHelper = { 2 player : null, 3 initFrame : function(id) { 4 var videoid = $('#'+id).attr('video-id'); 5 6 var ytHtml = '<div style="position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; max-width: 100%; height: auto;">\n' + 7 ' <iframe src="https://www.youtube.com/embed/'+videoid+'?rel=0&modestbranding=1" \n' + 8 ' frameborder="0" \n' + 9 ' allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" \n' + 10 ' allowfullscreen \n' + 11 ' style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;">\n' + 12 ' </iframe>\n' + 13 '</div>\n'; 14 15 $('.ytVideo').html(ytHtml); 16 17 return; 18 } 19} 20 21function onYouTubeIframeAPIReady() { 22 //.ytVideo 23 if($('.ytVideo').doesExist()) { 24 ytHelper.initFrame($('.ytVideo').attr('id')); 25 } 26 27}
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.