$(document).ready(function(){users=[],repos=[],$(".ghbtn").each(function(){var a=$(this).attr("user"),b=$(this).attr("repo");repos.push(a+"/"+b),-1===users.indexOf($(this).attr("user"))&&users.push($(this).attr("user"))});for(var a=0;a<users.length;a++)$.ajax({type:"GET",url:"https://api.github.com/users/"+users[a]+"/repos?per_page=100",tryCount:0,retryLimit:3,async:!0,dataType:"json",success:function(a){for(var b=0;b<a.length;b++)-1!==repos.indexOf(a[b].full_name)&&(x=a[b].name,$("div[repo="+x+"]").children(".star").html('<i class="fa fa-star"></i> '+a[b].stargazers_count),$("div[repo="+x+"]").children(".fork").html('<i class="fa fa-code-fork"></i> '+a[b].forks_count))}})});

$(document).ready(function(){users=[],repos=[],$(".ghbtn").each(function(){var a=$(this).attr("user"),b=$(this).attr("repo");repos.push(a+"/"+b),-1===users.indexOf($(this).attr("user"))&&users.push($(this).attr("user"))});for(var a=0;a<users.length;a++)$.ajax({type:"GET",url:"https://api.github.com/users/"+users[a]+"/repos?per_page=100",tryCount:0,retryLimit:3,async:!0,dataType:"json",success:function(a){for(var b=0;b<a.length;b++)-1!==repos.indexOf(a[b].full_name)&&(x=a[b].name,$("div[repo='"+x+"']").children(".star").html('<i class="fa fa-star"></i> '+a[b].stargazers_count),$("div[repo='"+x+"']").children(".fork").html('<i class="fa fa-code-fork"></i> '+a[b].forks_count))}})});

fix repo bug