Template:2011FR/Form-section-radiobuttons-4: Difference between revisions
Content deleted Content added
No edit summary |
No edit summary |
||
(44 intermediate revisions by the same user not shown) | |||
Line 52:
font-size: 0.95em;
}
a#currency-link{
color: #0645ad;
}
a#currency-link:hover{
color: #0645ad;
background-image: none !important;
padding-right: 0 !important;
cursor: pointer;
}
</style>
Line 102 ⟶ 114:
}
}
if ( form.
var otherAmount = form.
otherAmount = otherAmount.replace(/[,.](\d)$/, '\:$10');
otherAmount = otherAmount.replace(/[,.](\d)(\d)$/, '\:$1$2');
otherAmount = otherAmount.replace(/[\$,.]/g, '');
otherAmount = otherAmount.replace(/:/, '.');
form.input_amount_other_box.value = otherAmount;
form.amountGiven.value = otherAmount;
amount = otherAmount;
Line 127 ⟶ 140:
}
function triggerClick(elem){
$('#' + elem + '-container-contained').show();
}
function loadCountry(){
//alert(window.location);
//var newPage = window.location.value;
//newCountry = $("#currency-select").value;
//newPage.replace("</html>{{{country}}}<html>",newCountry);
//alert(newPage);
//window.location = newPage;
//return false;
}
</script>
<!--▼
<div>
<div id="radiobuttons-table-header">
</html>{{int:donate_interface-amount-legend}}
</div>
</div>
▲<!--
<span class="currency-collapsible-container-contained" id="country-container-contained">▼
<select onchange="loadCountry();">▼
</select>▼
</span>▼
-->
<div>
<div id="radiobuttons-table-header">
</html>{{int:donate_interface-amount-legend}}<html> </html>{{2011FR/core-currency-symbol|{{2011FR/core-currency-code|{{{country}}}}}}}<html>
</div>
<div class="collapsible-container-trigger" id="country-container" style="display: none; cursor: pointer;" onclick="triggerClick('country');">
<span style="font-weight: bold; font-size: 1.2em"></html>{{2011FR/core-currency-symbol|{{2011FR/core-currency-code|{{{country}}}}}}}<html></span><span style="font-size: 0.6em">(Change?)</span>
<br/>
<option value="</hmtl>{{{country}}}<html>" selected></html>{{2011FR/core-currency-code|{{{country}}}}}<html> – </html>{{2011FR/core-currency-symbol|{{2011FR/core-currency-code|{{{country}}}}}}}<html></option>
</html>{{#tag:html|{{#ifeq:{{2011FR/core-currency-code|{{{country}}}}}|USD||<option value="USD">USD – $</option>}}}}<html>
</html>{{#tag:html|{{#ifeq:{{2011FR/core-currency-code|{{{country}}}}}|EUR||<option value="EUR">EUR – €</option>}}}}<html>
</div>
</div>
<div id="radiobuttons-table-body">
<!-- <center> -->
Line 197 ⟶ 215:
</td>
<td class="amount-table-cell">
<input type="radio" name="amount" id="input_amount_other" value="" /><input type="text
</td>
</tr>
|