{"size": 619, "ext": "js", "max_stars_repo_path": "utils.js", "max_stars_repo_name": "vingkan/ecoeats", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "utils.js", "max_issues_repo_name": "vingkan/ecoeats", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "utils.js", "max_forks_repo_name": "vingkan/ecoeats", "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": 21.3448275862, "max_line_length": 46, "alphanum_fraction": 0.6962843296}
function toggle(button, color1, color2){
	//var button = document.getElementById(id);
	if(button.style.background == color1){
		button.style.background = color2;
	}
	else{
		button.style.background = color1;
	}
}

function togglePayButton(id){
	var payButton = document.getElementById(id);
	var toggleStatus = false;
	setInterval(function () {
		if(toggleStatus){
			payButton.style.opacity = '0.5';
			toggleStatus = false;
		}
		else{
			payButton.style.opacity = '1.0';
			toggleStatus = true;
		}
	}, 500);
}

function closePopup(popupID){
	var popup = document.getElementById(popupID);
	popup.style.height = '0';
}