Template:2012FR/Form-section/Links/Recurring: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
Created page with "<html> <style type="text/css"> .collapsible-container{ font-size: 0.8em; cursor: pointer; } .collapsible-container-trigger{ color: #0645AD; font-size: 1.2em; back..." |
No edit summary |
||
Line 54: | Line 54: | ||
} |
} |
||
</script> |
</script> |
||
<div class="collapsible-container" id="monthly-container"> |
|||
<a class="collapsible-container-trigger" id="monthly-link" target="_blank"href=""></html>{{int:donate_interface-monthly-donation}}<html></a> |
|||
</div> |
|||
<!-- This piece of script is add to preserve the layout of the page when the user is sent to monthly donation page --> |
|||
<script type="text/javascript"> |
|||
var monthlyURL = window.location.href; |
|||
var pageCountrySpecific = getQuerystring( 'form-countryspecific' ); |
|||
if (pageCountrySpecific == "") { |
|||
// if on a static page, e.g. from sidebar just use a monthly form and leave everything else as defaults |
|||
// Need to fix this later to pass language, utm data etc, but that stupid ampersand bug is stopping me for now -- Pcoombe |
|||
monthlyURL = 'https://donate.wikimedia.org/wiki/Special:FundraiserLandingPage?form-countryspecific=Form-countryspecific-monthly'; |
|||
} else { |
|||
// if on Special:FundraiserLandingPage, use all the same querystring but a monthly form |
|||
monthlyURL = monthlyURL.replace(pageCountrySpecific,'Form-countryspecific-monthly'); |
|||
} |
|||
document.getElementById("monthly-link").href = monthlyURL; |
|||
</script> |
|||
<!-- ----------------- end script--------------- --> |
|||
<div class="collapsible-container" id="otherways-container"> |
<div class="collapsible-container" id="otherways-container"> |