Open tmorehouse opened 10 years ago
function getSharesPinterest(el,href) { // el => element to update // href => url to check $.ajax({ url: 'http://api.pinterest.com/v1/urls/count.json', type: 'get', dataType: 'jsonp', data: { url: href } }).done(function(data) { $(el).text(data.count); }); }