')
.attr('target', '_blank')
.attr('href', photo.link)
.append(innerHtml);
return $('')
.addClass('instagram-placeholder')
.attr('id', photo.id)
.append(innerHtml);
}
function didLoadInstagram(event, response) {
var that = this;
$.each(response.data, function(i, photo) {
$(that).append(createPhotoElement(photo));
});
}
$(document).ready(function() {
$('#instagram').on('didLoadInstagram', didLoadInstagram);
$('#instagram').instagram({
count: 20,
userId: 3301700665,
accessToken: '3301700665.4445ec5.c3ba39ad7828412286c1563cac3f594b'
});
});
})(jQuery);