{"size": 1124, "ext": "js", "max_stars_repo_path": "js/main.js", "max_stars_repo_name": "hdngo/PokeBrawl", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "js/main.js", "max_issues_repo_name": "hdngo/PokeBrawl", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "js/main.js", "max_forks_repo_name": "hdngo/PokeBrawl", "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": 30.3783783784, "max_line_length": 79, "alphanum_fraction": 0.6859430605}
var bgm = new Audio('./audio/intro.mp3');
	bgm.volume =0.025;
	bgm.loop = true;
	bgm.play()

var charz = new Audio('./audio/charizard.mp3');
	charz.volume = 0.025;

var blast = new Audio('./audio/blastoise.mp3');
	blast.volume = 0.025;

$(document).ready(function(){
	$('#charizard').click(function(){
		bgm.pause();
		blast.pause();
		charz.play();
		//store pokemon selection
		sessionStorage.setItem("player-pokemon", "charizard");
		sessionStorage.setItem("cp-pokemon", "blastoise");
		sessionStorage.setItem("player", "red");
		sessionStorage.setItem("computer", "blue");
		//add delay before redirecting
		window.setTimeout(function(){window.location.assign("./battle.html")}, 3500);
	})
	$('#blastoise').click(function(){
		bgm.pause();
		charz.pause();
		blast.play();
		//store pokemon selection
		sessionStorage.setItem("player-pokemon", "blastoise");
		sessionStorage.setItem("cp-pokemon", "charizard")
		sessionStorage.setItem("player", "blue");
		sessionStorage.setItem("computer", "red");
		//add delay before redirecting
		window.setTimeout(function(){window.location.assign("./battle.html")}, 3500);
	});
});