diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-10-31 16:47:16 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-10-31 16:47:16 +0100 |
commit | 7c515170ee4c87f1bee0e3e967fd83070428e33b (patch) | |
tree | 839558be6e970c141a3f25a618354d9a775b51fe | |
parent | 1ca15d8f10a8c4b6860eeccf30899252eb6c3b79 (diff) | |
download | merchant-7c515170ee4c87f1bee0e3e967fd83070428e33b.tar.gz merchant-7c515170ee4c87f1bee0e3e967fd83070428e33b.tar.bz2 merchant-7c515170ee4c87f1bee0e3e967fd83070428e33b.zip |
-disable test logic
-rw-r--r-- | src/frontend/index.html | 42 |
1 files changed, 18 insertions, 24 deletions
diff --git a/src/frontend/index.html b/src/frontend/index.html index b2dcca7f..ff2e9be3 100644 --- a/src/frontend/index.html +++ b/src/frontend/index.html @@ -50,7 +50,7 @@ <p>First, you need to install the Taler wallet browser extension. It is currently only available for Firefox. If you run Firefox, simply click <a href="/extension">here</a> - to download and install the extension. You will have to + to download and install the extension. You will have to click on "allow" and "install" dialogs shown by Firefox. After that, the Taler logo should appear on the right side of your navigation bar. @@ -65,30 +65,30 @@ <div class="explanation" id="wire" role="article" style="display:none;"> <h2>Step 2: Performing a wire transfer</h2> <p>The next step is to transfer currency to the mint to - obtain Taler coins. This is typically done using a + obtain Taler coins. This is typically done using a wire transfer. However, as this is just a demonstrator, we will allow you to send the mint KUDOS coins using a simple form on this website instead.</p> <p>You begin by clicking on the Taler icon and selecting "Create reserve". The extension will then display some - hexadecimal reserve public key, which you should copy to the + hexadecimal reserve public key, which you should copy to the clipboard. After that, you can paste it into the form below. When dealing with real currency, you would do the same, except that you would have to copy the string - into the subject area for your wire transfer instead of + into the subject area for your wire transfer instead of into this form. </p> <form id="reserve-form" name="tform" action="/fake_wire_transfer.php" method="POST"> <div class="participation" id="fake-wire"> <br> Paste your reserve public key here (right-click, "paste"): - <input type="text" name="reserve_pk"></input> + <input type="text" name="reserve_pk" /> <select id="mint" name="mint_url"> <option value="demo.taler.net">mint @taler.net</option> <option value="localmint">localmint (**)</option> </select> <br> - Amount to credit to your reserve: + Amount to credit to your reserve: <select id="amount" name="kudos_amount"> <option value="1">1 KUDOS</option> <option value="2">2 KUDOS</option> @@ -97,7 +97,7 @@ <option value="1000">1000 KUDOS</option> </select> <br> - <input type="submit" value="Submit"></input> + <input type="submit" value="Submit"/> <br> </div> </form> @@ -105,14 +105,14 @@ <div class="explanation" id="payment" role="article" style="display:none;"> <h2>Step 3: Select project to donate KUDOS to!</h2> <p>Now it is time to spend your hard earned KUDOS. - For your convenience, we integrated a tiny "shop" - accepting KUDOS right here into this page.</p> - <p>Please choose a project and the amount of KUDOS you + For your convenience, we integrated a tiny "shop" + accepting KUDOS right here into this page.</p> + <p>Please choose a project and the amount of KUDOS you wish to donate.</p> <form name="tform" action="/checkout.php" method="POST"> <div class="participation" id="fake-shop"> <br> - <input type="radio" name="donation_receiver" value="Taler" checked="true">Taler</input> + <input type="radio" name="donation_receiver" value="Taler" checked="true">GNU Taler</input> <br> <input type="radio" name="donation_receiver" value="Tor">Tor</input> <br> @@ -122,9 +122,9 @@ <option value="1">1 KUDOS</option> <option value="6">5 KUDOS (*)</option> <option value="10">10 KUDOS</option> - <input type="hidden" name="donation_currency" value="KUDOS"></input> </select> - <input type="submit" name="keyName" value="Donate!"> + <input type="hidden" name="donation_currency" value="KUDOS"/> + <input type="submit" name="keyName" value="Donate!"/> <br> <br> </div> @@ -134,7 +134,7 @@ make you donate 6 KUDOS instead of the 5 KUDOS you got to see. But do not worry, you will be given the opportunity to review the final offer from the merchant in a window secured - by the Taler extension. That way, you can spot the + by the Taler extension. That way, you can spot the error before committing to an incorrect contract.</p> <p>(**) The 'localmint' option wants a mint whose base URL is "localmint". A possible configuration for this would be having an entry like '127.0.0.1 @@ -171,21 +171,15 @@ b.style.display = 'none'; }; - function test_without_wallet(){ - wallet_installed_cb(); - } - - test_without_wallet(); - /* Set up a listener to be called whenever a Wallet gets installed so that the user is led towards the demo's steps progressively */ - document.body.addEventListener("taler-wallet-installed", - wallet_installed_cb, + document.body.addEventListener("taler-wallet-installed", + wallet_installed_cb, false, false); /* Setup callback to be called whenever the wallet is uninstalled */ - document.body.addEventListener("taler-unload", - wallet_uninstalled_cb, + document.body.addEventListener("taler-unload", + wallet_uninstalled_cb, false); </script> </body> |