Content deleted Content added
testing social media template
 
testing
Line 1:
{{2011FR/lp-social-media}}
<html>
 
<script type="text/javascript">
$( document ).ready( function () {
// Disable submitting form with return key
$( 'form' ).bind( 'keypress', function(e) {
var code = ( e.keyCode ? e.keyCode : e.which );
if ( code == 13 ) return false;
} );
} );
</script>
<style type="text/css">
 
#pitch {
a.donate-link{
height: 236px;
color: #0645ad;
background-image: url(</html>{{#ifeq:{{Template:Ltr-direction|{{int:lang}}|rtl|<html>//upload.wikimedia.org/wikipedia/foundation/9/9a/Jimmy_Appeal_2009-flipped.jpg</html>|<html>//upload.wikimedia.org/wikipedia/foundation/d/dc/Jimmy_Appeal_2009.jpg</html>}}<html>);
background-image: none !important;
background-position: </html>{{#ifeq:{{Template:Ltr-direction|{{int:lang}}}}|rtl|left|right}}<html> top;
padding-right: 0 !important;
background-repeat: no-repeat;
background-color: #1e1e1e;
border: 1px solid gray;
border-bottom-width: 0;
}
 
#pitch-head {
.donate {
width: 50%;
font-sizewidth: 1.75em25em;
padding: 1em;
line-height: 1.5em;
color: white;
margin-top: 16px;
margin-</html>{{#ifeq:{{Template:Ltr-direction|{{int:lang}}}}|rtl|left|right}}<html>: 24px;
}
 
#pitch-body {
#donate-form-wrapper{
width: 50%;
background-color: #ffffff;
font-size: 1em;
border: 1px solid #000000;
line-height: 1.5em;
colorpadding: white1em;
margin-top: 16px;
margin-</html>{{#ifeq:{{Template:Ltr-direction|{{int:lang}}}}|rtl|left|right}}<html>: 24px;
}
 
#LP-table{
.donate-form-contained{
width:100%;
border-bottom: 1px solid #AAAAAA;"
direction: </html>{{Template:Ltr-direction|{{int:lang}}}}<html>;
borderpadding-top: none1em;
padding-bottom: 1em;
}
 
#form-wrapper{
#donor-whitebox{
vertical-align: top;
border-bottom: none;
}
 
#appeal-wrapper{
#donor-policy-block{
vertical-align: top;
width: 33.8em;
padding-</html>{{#ifeq:{{Template:Ltr-direction|{{int:lang}}}}|rtl|left|right}}<html>: 2em;
font-size: 0.8em;
padding-bottom: 1em;
}
 
body.mediawiki{
#donate-links{
direction: </html>{{Template:Ltr-direction|{{int:lang}}}}<html> !important;
border: none;
background-color: transparent;
padding:0em;
/*width: 27em;*/
}
 
div#mw-panel{
input.button, select#input_currency_code {
left: auto !important;
font-size: 95%;
right: auto !important;
}
 
#footer {
.collapsible-container{
background-image: none !important;
font-size: 0.8em;
cursor: pointer;
}
 
#mw-head-base {
.collapsible-container-trigger{
height: 1em !important;
color: blue;
font-size: 1.2em;
}
 
#mw-panel div.portal {
.collapsible-container-trigger:hover{
display: none !important;
text-decoration: underline;
color: blue;
}
 
#p-namespaces, #p-views, #p-cactions, #p-search, #p-personal, #catlinks, #firstHeading, #contentSub, #siteSub {
.currency-collapsible-container-contained{
display: none;
display: none;
background-color: #FFFFFF;
color: black;
}
 
div#content {
#country-container{
background-color: transparent !important;
background-image: none !important;
direction: </html>{{Template:Ltr-direction|{{int:lang}}}}<html> !important;
/*margin-</html>{{#ifeq:{{Template:Ltr-direction|{{int:lang}}}}|rtl|left|right}}<html>: 10em;*/
}
 
div#mw-head-base {
#country-container-trigger{
background-image: none !important;
font-size: 0.9em
}
 
#country-container-contained{
#footer-places{
display: none !important;
}
 
#input_currency_code{
width: 9em;
font-size: 0.95em;
}
 
#WM-donate-button {
display:none;
}
</style>
 
<table id="LP-table" cellspacing="0" cellpadding="0">
<script type="text/javascript" language="javascript">
<tbody>
 
<tr>
function getQuerystring( key ) {
<td id="appeal-wrapper">
key = key.replace( /[\[]/, '\\\[' ).replace( /[\]]/, '\\\]' );
</html>{{Template:2011FR/{{{appeal-template|Appeal-template-default}}}
var regex = new RegExp( '[\\?&]' + key + '=([a-zA-Z0-9\_\-]*)' );
| country = {{{country|US}}}
var qs = regex.exec( window.location.search );
| appeal = {{{appeal|Appeal-default}}}
return qs == null ? }}<html>'' : qs[1];
}
</td>
 
<td id="form-wrapper">
function getLandingPage() {
</html>{{Template:2011FR/{{{form-template|Form-template-default}}}
var path = "</html>{{{landing-page|default}}}<html>";
| country = {{{country|US}}}
 
| appeal = {{{appeal|Appeal-default}}}
if( path == "default") {
| form-countryspecific = {{{form-countryspecific|Form-countryspecific-control}}}
pathArray = window.location.pathname.split( '/' );
}}<html>
return pathArray[2];
</td>
</tr>}
else return path;
</tbody>
}
</table>
 
</html>
//function loadCountry(){
__NOTOC__
// 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&reg;<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>