-<form method="get" class="fdn-form" action="https://secure.fdn2.org/fdn2/nouser">
- <select name="px" id="px">
- <option value="10">10 €</option>
- <option value="25">25 €</option>
- <option value="50">50 €</option>
- <option value="100">100 €</option>
- <option value="250">250 €</option>
- <option value="">Autre</option>
- </select>
- <input type="text" name="custom-amount" id="custom-amount" />
- <!-- XXX: need some support code
- <div>
- <input type="checkbox" name="recurring" id="reccuring" value="true" />
- <label for="recurring">Je souhaite faire ce don tous les mois
- (<em>banque française seulement</em>).</label>
- </div>
- -->
- <input type="hidden" name="lang" value="fr" />
- <input type="hidden" name="dest" value="oignon" />
- <input type="submit" name="submit" id="submit" value="Soutenez le réseau Tor…" />
- <script type="text/javascript">
- var px = document.querySelector('#px'),
- customAmount = document.querySelector('#custom-amount');
- px.addEventListener('change',function(){
- /* Update input name to prefill FDN form */
- if (px.value) {
- px.name = "px";
- customAmount.name = "custom-amount";
- customAmount.value = "";
- customAmount.style.display = "none";
- }
- else {
- customAmount.style.display = "inline-block";
- customAmount.name = "px";
- px.name = "dummy_px";
- }
- });
- </script>
-</form>
-