Skip to content

Instantly share code, notes, and snippets.

@b3457m0d3
Created May 17, 2012 20:52
Show Gist options
  • Save b3457m0d3/2721523 to your computer and use it in GitHub Desktop.
Save b3457m0d3/2721523 to your computer and use it in GitHub Desktop.
$( document ).ready( function () {
var html = "";
$.ajax( {
url : "https://api.github.com/users/MichaelMartinez/watched",
dataType : "jsonp",
success : function ( returndata ) {
$.each( returndata.data, function ( i, item ) {
html += '<li>' +
'<a class="btn" href="' + this.html_url + '">' + this.name + '</a>' +
'<ul>' +
'<li>' + 'Description: ' + this.description + '</li>' +
'<li>' + 'Language: ' + this.language + '</li>' +
'<li>' + 'Updated: ' + this.updated_at + '</li>' +
'<li>' + 'Owner: ' + this.owner.login + '</li>' +
'</ul>' +
'</li>';
} );
$( '#result' ).append( html );
}
} );
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment