Permalink
Browse files

change in github version

  • Loading branch information...
1 parent bcfcd25 commit 692053a3e77a95d14189911e21db6b61b9227898 @harikt harikt committed Jul 18, 2012
Showing with 16 additions and 0 deletions.
  1. +16 −0 js/custom.js
View
@@ -1,4 +1,19 @@
$( function() {
+ $.get('https://api.github.com/orgs/auraphp/repos', function(data) {
+ var str = '';
+ data.repositories.reverse();
+ for( i = 0; i < data.repositories.length; i++ ) {
+ var repo = data.repositories[i].name;
+ if( repo.match('Aura.') ) {
+ str = str + '<li><a href="/'+ data.repositories[i].name +'" title="'+ data.repositories[i].description +'">' + data.repositories[i].name + '</a></li>';
+ }
+ }
+ //console.log( data );
+ if( str.length > 0 ) {
+ $('#githubrepos').html( '<ul>' + str + '</ul>' );
+ }
+ });
+/* Version 2
gh.user("auraphp").repos(function (data) {
var str = '';
data.repositories.reverse();
@@ -13,4 +28,5 @@ $( function() {
$('#githubrepos').html( '<ul>' + str + '</ul>' );
}
});
+*/
});

0 comments on commit 692053a

Please sign in to comment.