console.log('eu.wemove.contribjs');

// set default amount based on param donation_amount in url
var name = 'donation_amount';
var da = decodeURIComponent((new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(location.search)||[,""])[1].replace(/\+/g, '%20'))||null;
if (da > 0) {
  da = da.replace('.', '\\.');
  jQuery(".price-set-row input[data-amount="+da+"]").prop("checked", true).click();
}

Set default amount based on param donation_amount in url
Set default amount based on param donation_amount in url
