Difference between revisions of "Template:2010/Donate-nowIT"

From the Wikimedia Foundation
Jump to: navigation, search
(OWA)
(fix)
 
Line 5: Line 5:
 
[2]http://wikimediafoundation.org/w/index.php?title=Template:2010/Donate-nowFR&action=history
 
[2]http://wikimediafoundation.org/w/index.php?title=Template:2010/Donate-nowFR&action=history
 
p.s: on vous aime, les français :D -->
 
p.s: on vous aime, les français :D -->
 
 
<script type="text/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;
 
}
 
 
 
 
document.paypalcontribution.utm_medium.value = getQuerystring( 'utm_medium' );
 
document.paypalcontribution.utm_campaign.value = getQuerystring( 'utm_campaign' );
 
document.paypalcontribution.referrer.value = document.referrer;
 
 
</script>
 
   
 
<script type="text/javascript" language="javascript">
 
<script type="text/javascript" language="javascript">
Line 122: Line 92:
   
 
</div>
 
</div>
  +
  +
  +
<script type="text/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;
  +
}
  +
  +
  +
  +
document.paypalcontribution.utm_medium.value = getQuerystring( 'utm_medium' );
  +
document.paypalcontribution.utm_campaign.value = getQuerystring( 'utm_campaign' );
  +
document.paypalcontribution.referrer.value = document.referrer;
  +
  +
</script>
   
 
</html><noinclude>
 
</html><noinclude>

Latest revision as of 09:00, 13 November 2010

{{{gift-amount-text}}}
 €
{{{gift-amount-text-suite}}}

Retrieved from "http://wikimediafoundation.org/w/index.php?title=Template:2010/Donate-nowIT&oldid=51030"