Updated Github API to V3.

Github API V2 has been removed.  The response data format also changed.
This commit is contained in:
Zhao Lü 2012-07-19 22:09:48 -07:00
parent 0d14d9cd06
commit 9d7240e47f

View File

@ -3,7 +3,7 @@ var github = (function(){
var i = 0, fragment = '', t = $(target)[0];
for(i = 0; i < repos.length; i++) {
fragment += '<li><a href="'+repos[i].url+'">'+repos[i].name+'</a><p>'+repos[i].description+'</p></li>';
fragment += '<li><a href="'+repos[i].html_url+'">'+repos[i].name+'</a><p>'+(repos[i].description||'')+'</p></li>';
}
t.innerHTML = fragment;
}