https://www.visitdeni.com/wp-content/themes/visitdeni/js/media-js/…=8c398b0f233f5b03278dc3f336fe836d
1 2function youtubelinkClick(linkobj, bannerTrackingUrl) { 3 4 // get the video id 5 var id = jQuery(linkobj).attr('id'); 6 7 // play the video 8 youtubevideoClick(id); 9 10 // track the stats 11 if (bannerTrackingUrl) { 12 jQuery.ajax({ 13 url: bannerTrackingUrl, 14 data: {}, 15 success: function() {}, 16 dataType: 'html' 17 }); 18 } 19 20} 21 22function youtubevideoClick(id) { 23 24 // pause the jquery cycle slider 25 jQuery('.cycle-slideshow').cycle('pause'); 26 27 // adjust the height of the banner area to the same height as the video player 28 var bannerwidth = jQuery('#youtube'+id).parent().find('img').width(); 29 var bannerheight = jQuery('#youtube'+id).parent().find('img').height(); 30 jQuery('#youtube'+id).width( bannerwidth ); 31 jQuery('#youtube'+id).height( bannerheight ); 32 33 // display & expand the youtube player 34 jQuery('#youtube'+id).slideToggle(); 35 jQuery('#youtube'+id).parent().find('.closebox').show(); 36 37 // unwrap the script tag (if any) 38 jQuery('#youtube'+id+' script').each(function() { 39 jQuery(this).before(jQuery(this).html()); 40 jQuery(this).remove(); 41 }); 42 43 // play the video immediately (update iframe url with autoplay=1) 44 jQuery('#youtube'+id+' iframe').each(function() { 45 var newSrc = jQuery(this).attr('src') + ((jQuery(this).attr('src').indexOf('?') > 0) ? '&' : '?'); 46 newSrc = newSrc + 'autoplay=1&enablejsapi=true'; // http://stackoverflow.com/questions/8667882/how-to-pause-a-youtube-player-when-hiding-the-iframe 47 jQuery(this).attr('src', newSrc); 48 jQuery(this).width( "100%" ); 49 jQuery(this).height( bannerheight ); 50 jQuery(this).attr('id', 'youtubeframe' + id); 51 }); 52 53 // add a class to the body, for styling purposes 54 jQuery('body').addClass('video-is-playing'); 55 56} 57 58function youtubevideoClose(idNum) { 59 60 // get id 61 var id = 'video' + idNum; 62 63 // pause the video - http://stackoverflow.com/questions/8667882/how-to-pause-a-youtube-player-when-hiding-the-iframe 64 document.getElementById('youtubeframe'+id).contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}', '*'); 65 66 // close the video player 67 jQuery('#youtube'+id).slideUp(); 68 jQuery('#youtube'+id).parent().find('.closebox').hide(); 69 70 // remove class from the body (which was for styling purposes) 71 jQuery('body').removeClass('video-is-playing'); 72 73 // resume the jquery cycle slider 74 jQuery('.cycle-slideshow').cycle('resume'); 75 76}
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.