Created
November 7, 2015 01:20
-
-
Save johnpmorris/88d37848f6330cc0e103 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
$(function() { | |
$.getJSON('https://api.dribbble.com/v1/users/USERNAME/shots?access_token=TOKEN&callback=?', function(resp) { | |
if (resp.data.length > 0) { | |
$.each(resp.data.reverse(), function(i, val) { | |
$('#dribbble').prepend( | |
'<div class="dribbble-shot"><div class="dribbble-image" style="background-image: url('+val.images.hidpi+')"><a href="'+val.html_url+'"></a><h3>'+val.title+'</h3></div></div>' | |
); | |
}); | |
} | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment