See [[wmf:User:Pcoombe]]
<html>
==Subpages==
<style type="text/css">
{{Special:PrefixIndex/User:Pcoombe}}
a.donate-link{
color: #0645ad;
background-image: none !important;
padding-right: 0 !important;
}
.donate {
width: 25em;
padding: 1em;
}
#donate-form-wrapper{
background-color: #ffffff;
border: 1px solid #000000;
padding: 1em;
}
.donate-form-contained{
border-bottom: 1px solid #AAAAAA;"
padding-top: 1em;
padding-bottom: 1em;
}
#donor-whitebox{
border-bottom: none;
}
#donor-policy-block{
width: 33.8em;
font-size: 0.8em;
padding-bottom: 1em;
}
#donate-links{
border: none;
background-color: transparent;
padding:0em;
/*width: 27em;*/
}
input.button, select#input_currency_code {
font-size: 95%;
}
.collapsible-container{
font-size: 0.8em;
cursor: pointer;
}
.collapsible-container-trigger{
color: blue;
font-size: 1.2em;
}
.collapsible-container-trigger:hover{
text-decoration: underline;
color: blue;
}
.currency-collapsible-container-contained{
display: none;
background-color: #FFFFFF;
color: black;
}
#country-container{
}
#country-container-trigger{
font-size: 0.9em
}
#country-container-contained{
}
#input_currency_code{
width: 9em;
font-size: 0.95em;
}
#WM-donate-button {
display:none;
}
</style>
<script type="text/javascript" language="javascript">
function getQuerystring( key ) {
key = key.replace( /[\[]/, '\\\[' ).replace( /[\]]/, '\\\]' );
var regex = new RegExp( '[\\?&]' + key + '=([a-zA-Z0-9\_\-]*)' );
var qs = regex.exec( window.location.search );
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 loadCountry(){
// var ctemp = window.location + '/' + document.getElementById('input_currency_code').value;
// alert(ctemp);
//}
//Should this be here?
var amount = null;
function DefaultSubmit(formfield,Action) {
var keycode;
if (window.event) keycode = window.event.keyCode;
else if (Action) keycode = Action.which;
else return true;
if (keycode == 13) {
redirectPayment(</html>{{#ifeq:{{CC-status}}|block|'1'|'2'}}<html>);
return false;
}
else
return true;
}
function validateForm(form){
var minimums = {
'USD': 1,
'EUR': 1,
'AED': 4,
'ARS': 4,
'AUD': 1,
'BBD': 2,
'BDT': 76,
'BGN': 1,
'BHD': 1,
'BMD': 1,
'BND': 1,
'BOB': 7,
'BRL': 2,
'BSD': 1,
'BZD': 2,
'CAD': 1,
'CHF': 1,
'CLP': 494,
'CNY': 6,
'COP': 1910,
'CRC': 512,
'CZK': 18,
'DKK': 5,
'DOP': 38,
'DZD': 73,
'EEK': 11,
'EGP': 6,
'GBP': 1,
'GTQ': 8,
'HKD': 8,
'HNL': 19,
'HRK': 5,
'HUF': 219,
'IDR': 8960,
'ILS': 4,
'INR': 49,
'JMD': 85,
'JOD': 1,
'JPY': 78,
'KES': 97,
'KRW': 1127,
'KYD': 1,
'KZT': 147,
'LBP': 1500,
'LKR': 110,
'LTL': 3,
'LVL': 1,
'MAD': 8,
'MKD': 45,
'MUR': 29,
'MVR': 15,
'MXN': 13,
'MYR': 3,
'NOK': 6,
'NZD': 1,
'OMR': 0.3,
'PAB': 1,
'PEN': 3,
'PHP': 43,
'PKR': 86,
'PLN': 3,
'PYG': 4190,
'QAR': 4,
'RON': 3,
'RUB': 30,
'SAR': 4,
'SEK': 7,
'SGD': 1,
'SVC': 9,
'THB': 30,
'TJS': 5,
'TND': 1,
'TRY': 2,
'TTD': 6,
'TWD': 30,
'UAH': 8,
'UYU': 19,
'UZS': 1760,
'VND': 21000,
'XAF': 470,
'XCD': 3,
'XOF': 476,
'ZAR': 7.8
};
var error = true;
// Get amount selection
for ( var i = 0; i < form.amount.length; i++ ) {
if ( form.amount[i].checked ) {
amount = form.amount[i].value;
}
}
//if ( form.input_amount_other_box.value != "</html>{{int:donate_interface-other}}<html>" ) {
if ( form.input_amount_other_box.value != "" ) {
var otherAmount = form.input_amount_other_box.value;
otherAmount = otherAmount.replace(/[,.](\d)$/, '\:$10');
otherAmount = otherAmount.replace(/[,.](\d)(\d)$/, '\:$1$2');
otherAmount = otherAmount.replace(/[\$,.]/g, '');
otherAmount = otherAmount.replace(/:/, '.');
form.input_amount_other_box.value = otherAmount;
form.amountGiven.value = otherAmount;
amount = otherAmount;
}
// Check amount is a real number
error = ( amount == null || isNaN( amount ) || amount.value <= 0 );
// Check amount is at least the minimum
var currency = form.currency_code.value;
if ( typeof( minimums[currency] ) == 'undefined' ) {
minimums[currency] = 1;
}
if ( amount < minimums[currency] || error ) {
alert( '</html>{{{validation-error-minimum|You must contribute at least $1}}}<html>'.replace('$1', minimums[currency] + ' ' + currency ) );
error = true;
}
return !error;
}
function triggerClick(elem){
$('#' + elem + '-container-contained').show('fast',null);
}
</script>
<div id="donate-form-wrapper">
<form method="post" name="paypalcontribution">
<input type="hidden" name="utm_source" value="" />
<input type="hidden" name="utm_medium" value="" />
<input type="hidden" name="utm_campaign" value="" />
<input type="hidden" name="referrer" value="" />
<script type="text/javascript">
document.paypalcontribution.utm_medium.value = getQuerystring( 'utm_medium' );
document.paypalcontribution.utm_campaign.value = getQuerystring( 'utm_campaign' );
document.paypalcontribution.referrer.value = document.referrer;
</script>
<input type="hidden" name="language" value="</html>{{int:lang}}<html>" />
<input type="hidden" name="country" value="</html>{{{country}}}<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" />
<input type="hidden" name="amountGiven" value="" />
<div>
</html>{{Template:CountrySwitch|2011FR/{{{form-countryspecific}}}|{{{country}}}|{{int:lang}}|{{{appeal}}}}}<html>
</div>
<div class="donate-form-contained">
<!-- credit card --->
<div id="CC-donate-button">
<input type="button" class="button" value="</html>{{int:donate_interface-cc-button}}<html>" onclick="redirectPayment('cc');"/>
</div>
<!-- credit card --->
<!-- Real Time --->
<div id="BP-donate-button">
<input type="button" class="button" value="</html>Donate via BPAY®<html>" onclick="redirectPayment('obt-bp');"/>
<img src="https://upload.wikimedia.org/wikipedia/donate/e/e3/BPAY_Landscape_MONO.gif" onclick="redirectPayment('obt-bp');" style="cursor: pointer; height:30px;"/>
</div>
<div id="Ideal-donate-button">
<input type="button" class="button" value="</html>IDeal<html>" onclick="redirectPayment('rtbt-ideal');"/>
<img src="https://upload.wikimedia.org/wikipedia/donate/7/72/IDEAL-klein.gif" onclick="redirectPayment('rtbt-ideal');" style="cursor: pointer; height:30px;"/>
</div>
<div id="eps-donate-button">
<input type="button" class="button" value="</html>E P S<html>" onclick="redirectPayment('rtbt-eps');"/>
<img src="https://upload.wikimedia.org/wikipedia/donate/1/15/Eps-logo-square.gif" onclick="redirectPayment('rtbt-eps');" style="cursor: pointer; height:30px;"/>
</div>
<div id="sofort-donate-button">
<input type="button" class="button" value="</html>{{#ifeq: {{{country}}}|AT|Sofort|DIRECTebanking}}<html>" onclick="redirectPayment('rtbt-sofo');"/>
<img src="https://upload.wikimedia.org/wikipedia/donate/f/fc/SofortDe.png" onclick="redirectPayment('rtbt-sofo');" style="cursor: pointer; height:30px;"/>
</div>
<!-- Real Time --->
<!-- Direct Debit --->
<div id="DD-donate-button">
<input type="button" class="button" value="</html>{{int:donate_interface-dd-button}}<html>" onclick="redirectPayment('dd');"/>
</div>
<!-- Direct Debit --->
<!-- EWallets --->
<div id="PP-donate-button">
<input type="button" class="button" value="</html>{{int:donate_interface-paypal-button}}<html>" onclick="redirectPayment('pp');"/>
</div>
<!--
<div id="PP-USD-donate-button" style="display: none;">
<input type="button" class="button" value="</html>{{int:donate_interface-paypal-button}}<html> (USD)" onclick="redirectPayment('ew-pp-usd');"/>
</div>
-->
<div id="RPP-donate-button">
<input type="button" class="button" value="</html>{{int:donate_interface-monthly-donation}}<html>" onclick="redirectPayment('rpp');"/>
</div>
<div id="YD-donate-button">
<input type="button" class="button" value="</html>Donate via YD<html>" onclick="redirectPayment('ew-yd');"/>
</div>
<div id="MB-donate-button">
<input type="button" class="button" value="</html>Donate via Skrill (Moneybookers)<html>" onclick="redirectPayment('ew-mb');"/>
</div>
<div id="WM-donate-button">
<input type="button" class="button" value="</html>Donate by WebMoney<html>" onclick="redirectPayment('ew-webmoney');"/>
<img src="https://upload.wikimedia.org/wikipedia/donate/3/3b/Wmlogo_blue.png" onclick="redirectPayment('ew-webmoney');" style="cursor: pointer; height:30px;"/>
</div>
<!-- EWallets --->
<!-- Bank Transfer --->
<div id="BT-donate-button">
<input type="button" class="button" value="</html>{{int:donate_interface-bt-button}}<html>" onclick="redirectPayment('bt');"/>
</div>
<!-- Bank Transfer --->
<!-- ugly link -->
<div id="PP-USD-donate-button" style="padding-top: 1em; display: none;">
<span style="font-size: 1em"><a style="cursor: pointer;" onclick="redirectPayment('ew-pp-usd');"></html>{{int:donate_interface-paypal-button}}<html></a> (USD)</span>
</div>
<!-- ugly link -->
<div style="font-size: 0.8em; padding-top: 1em; width:20em;">
</html>{{int:donate_interface-easydonate}}<html>
</div>
</div>
<div style="padding-top: 1em; width:20em;">
</html>{{Template:LanguageSwitch|2011FR/core-appeal-whitebox|{{int:lang}}}}<html>
</div>
</form>
</div>
<div id="donor-policy-block">
</html>{{2011FR/Form-section-privacy|uselang = {{int:lang}}| country = {{{country}}}}}<html>
</div>
<div class="donate" id="donate-links">
</html>{{2011FR/Form-section-links|uselang = {{int:lang}}| country = {{{country}}}}}<html>
</div>
<script type="text/javascript">
( function( $ ) {
$(document).ready(function(){
var currency = $("#input_currency_code").val();
})
} )( jQuery );
</script>
</html><noinclude>
[[Category:Fundraising templates|{{PAGENAME}}]]
[[Category:Fundraising templates 2011|{{PAGENAME}}]]
</noinclude>
|