Template:Ways to Give/PayPalSelect: Difference between revisions

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

</html>
</html>



Revision as of 16:23, 13 August 2015