Skip to content

Instantly share code, notes, and snippets.

@alistairholt
Created January 7, 2013 14:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alistairholt/4475366 to your computer and use it in GitHub Desktop.
Save alistairholt/4475366 to your computer and use it in GitHub Desktop.
$(function () {
$.jribbble.getShotsByPlayerId('ryanAmurphy', function (playerShots) {
var html = '';
$.each(playerShots.shots, function (i, shot) {
html += '<li><h3>' + shot.title + '</h3>';
html += '<h4>by ' + shot.player.name + '</h4><a href="' + shot.url + '">';
html += '<img src="' + shot.image_teaser_url + '" ';
html += 'alt="' + shot.title + '"></a></li>';
});
$('#shots').html(html);
}, {
page: 1,
per_page: 25
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment