Template:Ways to Give/PayPalSelect: Difference between revisions

Content deleted Content added
greatly simplify - just use links instead of a form
wrap in window load
Line 1:
<html>
<style>
#currency-list a {
float: left;
font-weight: bold;
Line 8:
width: 15em;
background: none;
}
</style>
<script>
$(document)window.readyaddEventListener('load', function() {
// Add tracking info to links
$('#currency-list a').attr('href', function(i, val) {
var uri = new mw.Uri(val);
uri.extend({
utm_medium: 'Waystogive',
utm_campaign: 'C11_Waystogive',
utm_source: 'Waystogive'
});
return uri.toString();
});
});
</script>
 
</html>