MediaWiki:Common.js: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
rm checkPaymentOutages |
add TY page code |
||
Line 353: | Line 353: | ||
}); |
}); |
||
/** |
|||
* Code for fundraising Thank You pages |
|||
* e.g. https://wikimediafoundation.org/wiki/Thank_You/en |
|||
*/ |
|||
if ( mw.config.get('wgPageName').substring(0,9) === 'Thank_You' ) { |
|||
mw.loader.using( 'mediawiki.util', function() { |
|||
var paymentMethod = mw.util.getParamValue('payment_method'), |
|||
country = mw.util.getParamValue('country'); |
|||
if ( paymentMethod === 'bt' ) { |
|||
document.getElementById('ty-banktransfer').style.display = 'block'; |
|||
} |
|||
if ( paymentMethod === 'bitcoin' ) { |
|||
document.getElementById('ty-bitcoin').style.display = 'block'; |
|||
} |
|||
if ( paymentMethod === 'bpay' ) { |
|||
document.getElementById('ty-bpay').style.display = 'block'; |
|||
} |
|||
if ( country === 'US' || country === 'CA' ) { |
|||
document.getElementById('ty-store').style.display = 'block'; |
|||
} |
|||
}); |
|||
} |
|||
}); |
}); |
||
$(document).ready(function() { |
$(document).ready(function() { |