1 2(function($){ 3 4 $(document).ready(function() { 5 $('.two-col-video-block').each(function(){ 6 var block = $(this); 7 if (!block.hasClass('two-col-video-processed')) { 8 var clicked = null; 9 10 if ($('a.video_url', block).length > 0) { 11 $('a.video_url', block).click(function(e) { 12 e.preventDefault(); 13 video = $(this).attr('href'); 14 video_markup = video.replace( 15 /(?:https?:\/\/)?(?:www\.)?(?:youtu\.be\/|youtube\.com(?:\/embed\/|\/v\/|\/watch\?v=))([\w\-]{10,12})\b[?=&\w]*(?!['"][^<>]*>|<\/a>)/ig, 16 '$1'); 17 if (video_markup.length > 0) { 18 var video_markup = '<iframe frameborder="0" scrolling="no" marginheight="0" marginwidth="0"width="788.54" height="443" type="text/html" src="https://www.youtube-nocookie.com/embed/' + video_markup + '?autoplay=1&fs=0&iv_load_policy=3&showinfo=0&rel=0&cc_load_policy=0&start=0&end=0&origin=https://youtubeembedcode.com"><div><small><a href="https://youtubeembedcode.com/pl/">youtubeembedcode pl</a></small></div><div><small><a href="http://www.mysmiley.net">http://www.mysmiley.net</a></small></div><div><small><a href="https://youtubeembedcode.com/en">youtubeembedcode.com/en/</a></small></div><div><small><a href="http://www.mysmiley.net">http://www.mysmiley.net</a></small></div><div><small><a href="https://youtubeembedcode.com/pl/">youtubeembedcode.com/pl/</a></small></div><div><small><a href="http://www.mysmiley.net">http://www.mysmiley.net</a></small></div></iframe>'; 19 $('.video-popup .popup-inner').html(video_markup); 20 clicked = $(this); 21 22 $('body').addClass('popup-open'); 23 $('body > .video-popup').addClass('open').removeClass('close'); 24 setTimeout(() => { 25 $('body > .video-popup .close').focus(); 26 }, 500); 27 } 28 }); 29 30 if ($('.ytplayer', block).length > 0) { 31 video = $('a.video_url', block).attr('href'); 32 id = $('a.video_url', block).data('id'); 33 start = $('a.video_url', block).data('loop-start'); 34 end = $('a.video_url', block).data('loop-end'); 35 preview = $('.ytplayer', block).YTPlayer({ 36 videoURL: video, 37 containment: '[data-id="' + id + '"]', 38 mute: true, 39 showControls: false, 40 showYTLogo: false, 41 opacity: 1, 42 gaTrack: false, 43 abundance: 0, 44 startAt: start, 45 endAt: end, 46 loop: true, 47 autoPlay: true, 48 }); 49 } 50 } 51 52 $('body > .video-popup a.close').click(function(e){ 53 e.preventDefault(); 54 if (clicked && clicked.length > 0) { 55 setTimeout(function(){ 56 clicked.focus(); 57 }, 500); 58 } 59 }); 60 61 block.addClass('two-col-video-processed'); 62 } 63 }); 64 }); 65 66})(jQuery);
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.