Ways to Give: Difference between revisions

Content deleted Content added
No edit summary
move Paypal stuff to a subpage too
Line 74:
<h3 style="border-color: #900;" id="PayPal">PayPal</h3>
<div class="wtg-section-content">
 
<style>
#currency-list a {
float: left;
font-weight: bold;
cursor: pointer;
height: 1em;
padding: 0.3em 1em 0.3em 1em;
width: 15em;
}
</style>
<script>
function loadCountry(code){
var newPage = "https://donate.wikimedia.org/wiki/Special:FundraiserLandingPage?uselang=</html>{{int:lang}}<html>&country=%COUNTRY%&utm_medium=sitenotice&utm_source=Waystogive&utm_campaign=C11_Waystogive";
 
newPage = newPage.replaceAll('amp;','');
newPage = newPage.replaceAll('%COUNTRY%',code);
location.replace(newPage);
}
 
function loadCurrency(code){
document.paypalcontribution.action = "https://payments.wikimedia.org/index.php/Special:GatewayFormChooser?uselang=</html>{{int:lang}}<html>";
var currency = document.createElement("input");
currency.type = "hidden";
currency.name = "currency";
currency.value = code;
document.paypalcontribution.appendChild(currency);
document.paypalcontribution.referrer.value = document.referrer;
document.paypalcontribution.submit();
}
</script>
 
<form method="post" name="paypalcontribution">
<input type="hidden" name="language" value="</html>{{int:lang}}<html>" />
<input type="hidden" name="utm_source" value="Waystogive" />
<input type="hidden" name="utm_medium" value="sitenotice" />
<input type="hidden" name="utm_campaign" value="C11_Waystogive" />
<input type="hidden" name="referrer" value="" />
<input type="hidden" name="gateway" value="paypal"/>
<input type="hidden" name="language" value="</html>{{int:lang}}<html>" />
<input type="hidden" name="returnto" value="Thank_You/</html>{{int:lang}}<html>" />
<input type="hidden" name="email-opt" id="input_email" value="1" checked="checked" />
</form>
 
To donate by <b>PayPal</b> please select a currency to proceed.
</html>{{:Ways to Give/PayPalSelect}}<html>
<div id="currency-list">
<a onclick="loadCurrency('USD')"></html>{{int:donate_interface-USD}}<html> (USD)</a>
<a onclick="loadCurrency('EUR')"></html>{{int:donate_interface-EUR}}<html> (EUR)</a>
<a onclick="loadCurrency('AUD')"></html>{{int:donate_interface-AUD}}<html> (AUD)</a>
<a onclick="loadCurrency('CAD')"></html>{{int:donate_interface-CAD}}<html> (CAD)</a>
<a onclick="loadCurrency('CHF')"></html>{{int:donate_interface-CHF}}<html> (CHF)</a>
<a onclick="loadCurrency('CZK')"></html>{{int:donate_interface-CZK}}<html> (CZK)</a>
<a onclick="loadCurrency('DKK')"></html>{{int:donate_interface-DKK}}<html> (DKK)</a>
<a onclick="loadCurrency('HKD')"></html>{{int:donate_interface-HKD}}<html> (HKD)</a>
<a onclick="loadCurrency('HUF')"></html>{{int:donate_interface-HUF}}<html> (HUF)</a>
<a onclick="loadCurrency('ILS')"></html>{{int:donate_interface-ILS}}<html> (ILS)</a>
<a onclick="loadCurrency('JPY')"></html>{{int:donate_interface-JPY}}<html> (JPY)</a>
<a onclick="loadCurrency('MXN')"></html>{{int:donate_interface-MXN}}<html> (MXN)</a>
<a onclick="loadCurrency('NOK')"></html>{{int:donate_interface-NOK}}<html> (NOK)</a>
<a onclick="loadCurrency('NZD')"></html>{{int:donate_interface-NZD}}<html> (NZD)</a>
<a onclick="loadCurrency('PHP')"></html>{{int:donate_interface-PHP}}<html> (PHP)</a>
<a onclick="loadCurrency('PLN')"></html>{{int:donate_interface-PLN}}<html> (PLN)</a>
<a onclick="loadCurrency('GBP')"></html>{{int:donate_interface-GBP}}<html> (GBP)</a>
<a onclick="loadCurrency('THB')"></html>{{int:donate_interface-THB}}<html> (THB)</a>
<a onclick="loadCurrency('TWD')"></html>{{int:donate_interface-TWD}}<html> (TWD)</a>
</div>
 
</div>
<div style="clear: both;"></div>
 
<h3 style="border-color: #994d00;" id="Monthly_recurring_gift">Monthly recurring gift</h3>