User talk:JSeddon/Ways to Give

Credit card or Paypal
.country-list{ width: 100%; }

.country-item{ background: none !important; padding-left: 0px !important; }

.continent-trigger-div{ font-wieght: bold; font-size: 1em; text-align: center; cursor: pointer; border: 1px solid black; background-color: #eeeeff; height: 2em; width: 5em; }

.continent-trigger-div:hover{ text-decoration: underline; }

.continent-contained{ display: none; vertical-align:top; }

.county-trigger-div{ font-wieght: bold; font-size: 1em; text-align: center; cursor: pointer; border: 1px solid black; background-color: #eeeeff; }

.country-trigger-div:hover{ text-decoration: underline; }

.country-contained{ display: none; vertical-align: top; }

vertical-align: middle; }
 * 1) default-contained{

width: 100%; }
 * 1) continent-list{

.list-td{ padding: 1em; }

function triggerClick(elem){ $('.' + 'continent-contained').hide; $('.' + 'country-contained').hide; $('#default-contained').hide; $('#' + elem + '-continent-contained').toggle; $('#' + elem + '-country-contained').toggle; } String.prototype.replaceAll = function( strTarget, // The substring you want to replace strSubString // The string you want to replace in. ){ var strText = this; var intIndexOfMatch = strText.indexOf( strTarget ); // Keep looping while an instance of the target string // still exists in the string. while (intIndexOfMatch != -1){ // Relace out the current instance. strText = strText.replace( strTarget, strSubString ) // Get the index of any next matching substring. intIndexOfMatch = strText.indexOf( strTarget ); } // Return the updated string with ALL the target strings // replaced out with the new substring. return( strText ); }

function loadCountry(code){ var newPage = "https://donate.wikimedia.org/wiki/Special:FundraiserLandingPage?uselang= &country=%COUNTRY%&template=Lp-layout-default&appeal-template=Appeal-template-default&appeal=Appeal-default&form-template=Form-template-default&form-countryspecific=Form-countryspecific-control&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://wikimediafoundation.org/wiki/Special:ContributionTracking/ "; var currency = document.createElement("input"); currency.type = "hidden"; currency.name = "currency_code"; currency.value = code; document.paypalcontribution.appendChild(currency); document.paypalcontribution.referrer.value = document.referrer;

document.paypalcontribution.submit; }