Created
May 8, 2015 15:33
-
-
Save wanderingcrow/28fc7ffb20371b34090b to your computer and use it in GitHub Desktop.
dribbble import
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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