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

From Donate
Jump to navigation Jump to search
Content deleted Content added
Pgehres (WMF) (talk | contribs)
jquery
Jalexander (talk | contribs)
 
(11 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<html>
<html>
<style type="text/css">
<style type="text/css">
input:-webkit-autofill {

color: #fff !important;
}
#donation-form
#donation-form
{
{
Line 63: Line 65:
}
}


div#card-info-block
#card-info-block
{
{
font-size: 0.9em;
font-size: 0.9em;
Line 309: Line 311:
if (keycode == 13)
if (keycode == 13)
{
{
if (document.getElementById('cc-donate-button').style.display == "block")
if (document.getElementById('cc-donate-button_step1').style.display == "block")
{
{
redirectPayment('cc');
redirectPayment('cc');
Line 367: Line 369:


function showCCForm(){
function showCCForm(){
$('card-info-block').animate( { 'display': 'block' }, 1000 )
$('#card-info-block').css( 'display', 'block');
$('cc-donate-button').css( 'display', 'block');
$('#cc-donate-button').css( 'display', 'block');
$('cc-donate-button_step1').css( 'display', 'none');
$('#cc-donate-button_step1').css( 'display', 'none');
$('#paypal-donate-button').css( 'display', 'none');
}
}


Line 472: Line 475:


<div id="cc-donate-button">
<div id="cc-donate-button">
<input type="button" value="Continue" class="button" onclick="redirectPayment('cc');"/>
<input type="button" value="&nbsp;&nbsp;&nbsp;Continue&nbsp;&nbsp;&nbsp;" class="button" onclick="redirectPayment('cc');"/>
</div>
</div>


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

Latest revision as of 23:51, 19 October 2011

{{{gift-amount-text}}}

Name
Address
E-mail

*  *  *