{"size": 1463, "ext": "js", "max_stars_repo_path": "public/js/bannerThree.js", "max_stars_repo_name": "ymob/XYZX", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "public/js/bannerThree.js", "max_issues_repo_name": "ymob/XYZX", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "public/js/bannerThree.js", "max_forks_repo_name": "ymob/XYZX", "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": 28.1346153846, "max_line_length": 85, "alphanum_fraction": 0.6144907724}
var banner = $('.bannerThree');
var W = banner.attr('bWidth')?banner.attr('bWidth'):0;
var H = banner.attr('bHeight')?banner.attr('bHeight'):0;
typeof(Number(W))
banner.css('width', (Number(W) != 0)?W + 'px':'100%');
banner.css('height', H + 'px');
var imgs = Array();
$(banner.children('img')).each(function(i, n){
	imgs[i] = $(n).attr('src');
});
var w = (Number(W) != 0)?W + 'px':'100%';
banner.html('<img class="_img" src="" style="width: '+ w +'; height: '+ H +'px;"/>');
var item = 0;
$('._img').attr('src', imgs[0]);

var Inte;
function bannerThreeAction()
{
	clearInterval(Inte);
	Inte = setInterval(function(){
		if(item >= imgs.length)
		{
			item = 0;
		}
		$('._img').attr('src', imgs[item]);
		item ++;
	}, 2000);
}
bannerThreeAction();
banner.append('<span class="glyphicon glyphicon-chevron-left"></span>');
banner.append('<span class="glyphicon glyphicon-chevron-right"></span>');
banner.children('.glyphicon').css('line-height', H+'px');

$(banner.children('.glyphicon-chevron-left')).on('click', function(){
	item = (item-1 < 0)?imgs.length-1:item-1;
	$('._img').attr('src', imgs[item]);
	bannerThreeAction();
});
$(banner.children('.glyphicon-chevron-right')).on('click', function(){
	item = (item+1 == imgs.length)?0:item+1;
	$('._img').attr('src', imgs[item]);
	bannerThreeAction();
});

banner.hover(
  	function(){
  		banner.children('.glyphicon').fadeIn(1000);
  	},
  	function(){
  		banner.children('.glyphicon').fadeOut(1000);
  	}
);