MediaWiki:Resources/landingpage.js: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 1:
<html>
<script>
function getQuerystring( key ) {
key = key.replace( /[\[]/, '\\\[' ).replace( /[\]]/, '\\\]' );
Line 48 ⟶ 46:
$("#p-logo a").attr("href", "#");
$("#p-logo a").attr("title", "");
 
// prefill other amount box if param provided
var otherVal = getQuerystring( 'otherVal' );
if( otherVal == '' || isNaN( parseFloat( otherVal ) ) ){
return;
}
otherVal = parseFloat( otherVal );
$("#input_amount_other").attr( 'checked', true );
$("#input_amount_other_box").val( otherVal );
 
// Highest previous contribution adjustments (for emails)
Line 98 ⟶ 87:
100 : [75, 100, 150],
150 : [75, 100, 200],
200 : [100, 200, 300]
}
};
Line 160 ⟶ 149:
}
var considerAmountString = "";
for( var jk = 0; jk < appealask.length; jk++ ) {
considerAmountString += symbol + appealask[jk] + ', ';
}
considerAmountString = considerAmountString.trim();
$('.consider-amounts').html(considerAmountString);
}
 
// prefill other amount box if param provided
var otherVal = getQuerystring( 'otherVal' );
if( otherVal == '' || isNaN( parseFloat( otherVal ) ) ){
return;
}
otherVal = parseFloat( otherVal );
$("#input_amount_other").attr( 'checked', true );
$("#input_amount_other_box").val( otherVal );
});
</script>
</html>