Skip to content

Instantly share code, notes, and snippets.

@wanderingcrow
Created May 8, 2015 15:33
Show Gist options
  • Save wanderingcrow/28fc7ffb20371b34090b to your computer and use it in GitHub Desktop.
Save wanderingcrow/28fc7ffb20371b34090b to your computer and use it in GitHub Desktop.
dribbble import
// load dribbble stuff
$.jribbble.getShotsByPlayerId('javaporter', function (playerShots) {
var html = [];
$.each(playerShots.shots, function (i, shot) {
html.push('<li class="block">');
html.push('<a href="' + shot.url + '", target="blank">');
html.push('<img src="' + shot.image_url + '" ');
html.push('alt="' + shot.title + '"></a></li>');
});
$('#shotsByPlayerId').html(html.join(''));
}, {
page: 1,
per_page: 40
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment