{"size": 1500, "ext": "js", "max_stars_repo_path": "js/youtubeapi.js", "max_stars_repo_name": "qwertwerty21/Oppamodoro", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "js/youtubeapi.js", "max_issues_repo_name": "qwertwerty21/Oppamodoro", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "js/youtubeapi.js", "max_forks_repo_name": "qwertwerty21/Oppamodoro", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 20.2702702703, "max_line_length": 86, "alphanum_fraction": 0.646}
var tag = document.createElement( "script" );
tag.src = "https://www.youtube.com/iframe_api";

var $firstScript = $( "script" ).first();
$firstScript.parent().append( tag );

var player;
var kPopIframeYT;




window.onYouTubeIframeAPIReady = function(){
	
	player = new YT.Player( "kPopShowerDiv", {
		playerVars:{
			listType: "playlist",
			list: "PLYnGL4xCCL3Jyp4B1xpjXbESDH6oT22Y_"
		},
		events: {
			"onReady": onPlayerReady,
			"onStateChange": onPlayerStateChange
		}
	
	});
	
};

function onPlayerReady( event ){
	kPopIframeYT = event.target;
	kPopIframeYT.pauseVideo();
	setTimeout( setShuffleFunction, 1000 );
}

function setShuffleFunction(){
	kPopIframeYT.setShuffle( true );
}

function onPlayerStateChange(event) {    
	
	    
    if(event.data === 0) {            
        	
		if( kPopIframeYT ){
				var pauseYT = function(){ kPopIframeYT.pauseVideo(); };
        		setTimeout( pauseYT, 1000 );
			}		

		
		myPomoTimer.countItDown();
		
		$( "#kPopShowerDiv" ).addClass( "hidden" );

		$( "#mainContentArea" ).removeClass( "hidden" );

		var newBGGif = myPomoTimer.getRandomGif();

		newBGGif = "url(" + newBGGif + ") no-repeat center fixed";

		$( "body" ).css( "background", newBGGif );
		$( "body" ).css( "background-size", "cover");
		
		myPomoTimer.kickOutTheJams = false;
		myPomoTimer.showNotification();

		

		//FIX THE -1:-1 TIMING AND YOU GOOD FOO
		

			//REDO ALL THIS SHIT
        //FIGURE OUT WHAT TO DO DO HERE IE HIDE BREAK WINDOW SHOW WORK WINDOW AND ShIT
    }
 }