Template:2011FR/lp-form-US7amounts-gc: Difference between revisions

From Donate
Jump to navigation Jump to search
Content deleted Content added
mNo edit summary
No edit summary
Line 52: Line 52:
return qs == null ? '' : qs[1];
return qs == null ? '' : qs[1];
}
}

function getLandingPage() {
var path = "</html>{{{landing-page|default}}}<html>";

if( path == "default") {
pathArray = window.location.pathname.split( '/' );
return pathArray[2];
}
else return path;
}

function updateCC( currency ) {
if ( ( currency == 'AUD' ) || ( currency == 'CAD' ) || ( currency == 'EUR' ) ||
(currency == 'GBP' ) || ( currency == 'JPY' ) || ( currency == 'USD' ) ) {
document.getElementById('cc-donate-button').style.display = "</html>{{CC-status}}<html>";
} else {
document.getElementById('cc-donate-button').style.display = "none";
}
}

document.paypalcontribution.utm_medium.value = getQuerystring( 'utm_medium' );
document.paypalcontribution.utm_campaign.value = getQuerystring( 'utm_campaign' );
document.paypalcontribution.referrer.value = document.referrer;

( function( $ ) {
$(document).ready(function(){
var currency = $("#input_currency_code").val();
updateCC(currency);
})
} )( jQuery );
</script>
</script>
</html><noinclude>
</html><noinclude>

Revision as of 19:37, 24 October 2013

{{{gift-amount-text}}}

*  *  *