Skip to content

Instantly share code, notes, and snippets.

@tylergaw
Created July 24, 2017 13:26
Show Gist options
  • Save tylergaw/ca43eb37762d3232c6d7c81c2d6f5120 to your computer and use it in GitHub Desktop.
Save tylergaw/ca43eb37762d3232c6d7c81c2d6f5120 to your computer and use it in GitHub Desktop.
$(function() {
  $.jribbble.setToken('7c9209716855de040973271827d2777eaf5d86ee4dce71934cd4a12cc9312bed');

  $.jribbble.users('jtwinchester').shots({per_page: 36}).then(function(shots) {
    var html = [];

    shots.forEach(function(shot) {
      html.push('<li class="shots--shot">');
      html.push('<a href="' + shot.html_url + '" target="_blank">');
      html.push('<img src="' + shot.images.hidpi + '">');
      html.push('</a></li>');
    });

    $('.shots').html(html.join(''));
  });
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment