{"size": 2896, "ext": "js", "max_stars_repo_path": "group/public/group/js/phone_index.js", "max_stars_repo_name": "linmingling/demo", "max_stars_repo_stars_event_min_datetime": "2016-02-17T03:50:15.000Z", "max_stars_repo_stars_event_max_datetime": "2016-10-21T03:32:14.000Z", "max_issues_repo_path": "group/public/group/js/phone_index.js", "max_issues_repo_name": "linmingling/demo", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "group/public/group/js/phone_index.js", "max_forks_repo_name": "linmingling/demo", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 2, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 39.1351351351, "max_line_length": 200, "alphanum_fraction": 0.6222375691}
/*倒计时*/
function showTime_new(deadline,dom) {
		var countdown = new Date(deadline) - new Date();
		
		var restDays = dom.find(".days");
		var restHours = dom.find(".hours");
		var restMinutes = dom.find(".minutes");
		var restSeconds = dom.find(".seconds");

		var timer = setInterval(function() {
			if(countdown<0){
				clearInterval(timer);
				return false;
			}
			var days = Math.floor(countdown / 86400000) < 0 ? 0 : Math.floor(countdown / 86400000);
			var hours = Math.floor((countdown - days * 86400000) / 3600000) < 0 ? 0 : Math.floor((countdown - days * 86400000) / 3600000);
			var minutes = Math.floor((countdown - days * 86400000 - hours * 3600000) / 60000) < 0 ? 0 : Math.floor((countdown - days * 86400000 - hours * 3600000) / 60000);
			var seconds = Math.floor((countdown - days * 86400000 - hours * 3600000 - minutes * 60000) / 1000) < 0 ? 0 : Math.floor((countdown - days * 86400000 - hours * 3600000 - minutes * 60000) / 1000);			
			days < 10 ? days = "0" + days : days = days;
			hours < 10 ? hou000s = "0" + hours : hours = hours;
			minutes < 10 ? minutes = "0" + minutes : minutes = minutes;
			seconds < 10 ? seconds = "0" + seconds : seconds = seconds;

			//alert(days+", "+hours+", "+minutes+", "+seconds);
			restDays.html(days);
			restHours.html(hours);
			restMinutes.html(minutes);
			restSeconds.html(seconds);
			countdown -= 1000;
		}, 1000)
		
	}
function showTime(deadline,id) {
	var countdown = deadline - new Date();
	var restDays = $("#"+id+" .days");
	var restHours = $("#"+id+" .hours");
	var restMinutes = $("#"+id+" .minutes");
	var restSeconds = $("#"+id+" .seconds");

	var timer = setInterval(function() {
		if(countdown<0){
			clearInterval(timer);
			return false;
		}
		var days = Math.floor(countdown / 86400000) < 0 ? 0 : Math.floor(countdown / 86400000);
		var hours = Math.floor((countdown - days * 86400000) / 3600000) < 0 ? 0 : Math.floor((countdown - days * 86400000) / 3600000);
		var minutes = Math.floor((countdown - days * 86400000 - hours * 3600000) / 60000) < 0 ? 0 : Math.floor((countdown - days * 86400000 - hours * 3600000) / 60000);
		var seconds = Math.floor((countdown - days * 86400000 - hours * 3600000 - minutes * 60000) / 1000) < 0 ? 0 : Math.floor((countdown - days * 86400000 - hours * 3600000 - minutes * 60000) / 1000);			
		days < 10 ? days = "0" + days : days = days;
		hours < 10 ? hou000s = "0" + hours : hours = hours;
		minutes < 10 ? minutes = "0" + minutes : minutes = minutes;
		seconds < 10 ? seconds = "0" + seconds : seconds = seconds;

		//alert(days+", "+hours+", "+minutes+", "+seconds);
		restDays.html(days);
		//hours = days*24+hours;
		restHours.html(hours);
		restMinutes.html(minutes);
		restSeconds.html(seconds);
		countdown -= 1000;
	}, 1000);
}
function tips(text){
	$("body").append("<div class='comTips'>"+text+"</div>")
	setTimeout(function(){
		$(".comTips").remove();
	},3000);
}





