Skip to content

Instantly share code, notes, and snippets.

@caseypugh
Created July 26, 2013 18:01
Show Gist options
  • Save caseypugh/6090895 to your computer and use it in GitHub Desktop.
Save caseypugh/6090895 to your computer and use it in GitHub Desktop.
Kickstarter suspicious money script
var total=0;$('#what-you-get li').each(function(i, el) {
var price = parseInt($(el).find('h5').html().match(/Pledge \$([0-9\,]+)/)[1].replace(',',''));
var backers = parseInt($(el).find('.num-backers').html());
total += price * backers;
});
console.log(total);
$('[data-pledged]').data('pledged') - total;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment