Template:2011FR/lp-form-monthlyonly: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
No edit summary |
Jalexander (talk | contribs) m 11 revisions from foundation:Template:2011FR/lp-form-monthlyonly |
||
(3 intermediate revisions by one other user not shown) | |||
Line 108: | Line 108: | ||
<td style="white-space:nowrap;"><input type="radio" name="amount" id="input_amount_1" onclick="document.paypalcontribution. amountGiven.value = ''" value="</html>{{{donate-amount-1}}}<html>" /><label for="input_amount_1"></html>{{#ifeq: {{{currency-pos}}} | before | {{{donate-currency-symbol}}} | }} {{{donate-amount-1}}} {{#ifeq: {{{currency-pos}}} | after | {{{donate-currency-symbol}}} | }}<html></label></td> |
<td style="white-space:nowrap;"><input type="radio" name="amount" id="input_amount_1" onclick="document.paypalcontribution. amountGiven.value = ''" value="</html>{{{donate-amount-1}}}<html>" /><label for="input_amount_1"></html>{{#ifeq: {{{currency-pos}}} | before | {{{donate-currency-symbol}}} | }} {{{donate-amount-1}}} {{#ifeq: {{{currency-pos}}} | after | {{{donate-currency-symbol}}} | }}<html></label></td> |
||
<td style="white-space:nowrap;"><input type="radio" name="amount" id="input_amount_2" onclick="document.paypalcontribution. amountGiven.value = ''" value="</html>{{{donate-amount-2}}}<html>" /><label for="input_amount_2"></html>{{#ifeq: {{{currency-pos}}} | before | {{{donate-currency-symbol}}} | }} {{{donate-amount-2}}} {{#ifeq: {{{currency-pos}}} | after | {{{donate-currency-symbol}}} | }}<html></label></td> |
<td style="white-space:nowrap;"><input type="radio" name="amount" id="input_amount_2" onclick="document.paypalcontribution. amountGiven.value = ''" value="</html>{{{donate-amount-2}}}<html>" /><label for="input_amount_2"></html>{{#ifeq: {{{currency-pos}}} | before | {{{donate-currency-symbol}}} | }} {{{donate-amount-2}}} {{#ifeq: {{{currency-pos}}} | after | {{{donate-currency-symbol}}} | }}<html></label></td> |
||
<td style="white-space:nowrap;"><input type="radio" name="amount" id="input_amount_3" onclick="document.paypalcontribution. amountGiven.value = ''" value="</html>{{{donate-amount-3}}}<html>" /><label for="input_amount_3"></html>{{#ifeq: {{{currency-pos}}} | before | {{{donate-currency-symbol}}} | }} {{{donate-amount-3}}} {{#ifeq: {{{currency-pos}}} | after | {{{donate-currency-symbol}}} | }}<html></label></td> |
<td style="white-space:nowrap;"><input type="radio" name="amount" id="input_amount_3" onclick="document.paypalcontribution. amountGiven.value = ''" value="</html>{{{donate-amount-3}}}<html>" /><label for="input_amount_3"></html>{{#ifeq: {{{currency-pos}}} | before | {{{donate-currency-symbol}}} | }} {{{donate-amount-3}}} {{#ifeq: {{{currency-pos}}} | after | {{{donate-currency-symbol}}} | }}<html></label></td> |
||
</tr> |
</tr> |
||
<tr> |
<tr> |
||
Line 118: | Line 118: | ||
</tr> |
</tr> |
||
</table> |
</table> |
||
<!-- |
|||
<select name="currency_code" id="input_currency_code" size="1" style="width:6em;" onchange="updateCC(this.value);"><option value="</html>{{{donate-currency}}}<html>" selected></html>{{{donate-currency}}}<html> – </html>{{{donate-currency-symbol}}}<html></option> |
<select style="display: none;" name="currency_code" id="input_currency_code" size="1" style="width:6em;" onchange="updateCC(this.value);"><option value="</html>{{{donate-currency}}}<html>" selected></html>{{{donate-currency}}}<html> – </html>{{{donate-currency-symbol}}}<html></option> |
||
<option value="XXX">-------</option> |
<option value="XXX">-------</option> |
||
<option value="GBP">GBP – £</option> |
<option value="GBP">GBP – £</option> |
||
Line 138: | Line 138: | ||
<option value="PLN">PLN – zł</option> |
<option value="PLN">PLN – zł</option> |
||
<option value="SEK">SEK – kr</option> |
<option value="SEK">SEK – kr</option> |
||
<option value="SGD">SGD – S$</option></select |
<option value="SGD">SGD – S$</option></select></span> |
||
</div> |
</div> |
||
</br> |
</br> |
||
Line 176: | Line 176: | ||
else return path; |
else return path; |
||
} |
} |
||
/* |
|||
function updateCC( currency ) { |
function updateCC( currency ) { |
||
if ( ( currency == 'AUD' ) || ( currency == 'CAD' ) || ( currency == 'EUR' ) || |
if ( ( currency == 'AUD' ) || ( currency == 'CAD' ) || ( currency == 'EUR' ) || |
||
Line 185: | Line 185: | ||
} |
} |
||
} |
} |
||
*/ |
|||
document.paypalcontribution.utm_medium.value = getQuerystring( 'utm_medium' ); |
document.paypalcontribution.utm_medium.value = getQuerystring( 'utm_medium' ); |
||
Line 194: | Line 193: | ||
$(document).ready(function(){ |
$(document).ready(function(){ |
||
var currency = $("#input_currency_code").val(); |
var currency = $("#input_currency_code").val(); |
||
updateCC(currency); |
|||
}) |
}) |
||
} )( jQuery ); |
} )( jQuery ); |
Latest revision as of 19:43, 1 November 2011