1/* Source and licensing information for the line(s) below can be found at https://www.popkiller.pl/sites/all/themes/popkiller_theme/js/lunametrics-youtube.js. */ 2var tag=document.createElement('script');tag.src="//www.youtube.com/iframe_api";var firstScriptTag=document.getElementsByTagName('script')[0];firstScriptTag.parentNode.insertBefore(tag,firstScriptTag);var videoArray=new Array();var playerArray=new Array();(function($){function trackYouTube() 3{var i=0;jQuery('iframe').each(function(){var video=$(this);if(video.attr('src')===undefined){var vidSrc="";}else{var vidSrc=video.attr('src');} 4var regex=/https?\:\/\/www\.youtube\.com\/embed\/([\w-]{11})(?:\?.*)?/;var matches=vidSrc.match(regex);if(matches&&matches.length>1){videoArray[i]=matches[1];$(this).attr('id',matches[1]);i++;}});} 5$(document).ready(function(){trackYouTube();});})(jQuery);function onYouTubeIframeAPIReady(){for(var i=0;i<videoArray.length;i++){playerArray[i]=new YT.Player(videoArray[i],{events:{'onReady':onPlayerReady,'onStateChange':onPlayerStateChange}});}} 6function onPlayerReady(event){} 7var _pauseFlag=false;function onPlayerStateChange(event){videoarraynum=event.target.id-1;if(event.data==YT.PlayerState.PLAYING){_gaq.push(['_trackEvent','Videos','Play',videoArray[videoarraynum]]);_pauseFlag=false;} 8if(event.data==YT.PlayerState.ENDED){_gaq.push(['_trackEvent','Videos','Watch to End',videoArray[videoarraynum]]);} 9if(event.data==YT.PlayerState.PAUSED&&_pauseFlag==false){_gaq.push(['_trackEvent','Videos','Pause',videoArray[videoarraynum]]);_pauseFlag=true;} 10if(event.data==YT.PlayerState.BUFFERING){_gaq.push(['_trackEvent','Videos','Buffering',videoArray[videoarraynum]]);} 11if(event.data==YT.PlayerState.CUED){_gaq.push(['_trackEvent','Videos','Cueing',videoArray[videoarraynum]]);}}; 12/* Source and licensing information for the above line(s) can be found at https://www.popkiller.pl/sites/all/themes/popkiller_theme/js/lunametrics-youtube.js. */
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.