1jQuery(function($){ 2 let blocks = $('.video-block-wrap'); 3 4 blocks.each(function(){ 5 let _ = $(this); 6 let trigger = _.find('.icon'); 7 let image = _.find('.video-block-image'); 8 let video = _.find('.embed-container'); 9 10 trigger.click(function(){ 11 let id = $(this).data('vid'); 12 video.html(''); 13 autoPlayVideo(video, id, 640, 360); 14 image.fadeOut(); 15 }) 16 }) 17 18 function autoPlayVideo(selector, vcode, width, height){ 19 "use strict"; 20 selector.html('<iframe width="'+width+'" height="'+height+'" src="https://www.youtube.com/embed/'+vcode+'?autoplay=1&loop=1&rel=0&wmode=transparent" frameborder="0" allowfullscreen wmode="Opaque"></iframe>'); 21 } 22})
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.