taler-www

Main taler.net website
Log | Files | Refs | Submodules | README | LICENSE

commit 4265311d9cc643f0682f0441cc58e1aab4b84102
parent 8ae3721d60e9aad5c7d05479fe6f4a28e23bae9a
Author: Florian Dold <florian.dold@gmail.com>
Date:   Wed, 27 Apr 2016 04:53:41 +0200

better presence detection

Diffstat:
Mwallet-installation.html | 13+++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/wallet-installation.html b/wallet-installation.html @@ -44,6 +44,15 @@ function installWallet() { chrome.webstore.install("https://chrome.google.com/webstore/detail/millncjiddlpgdmkklmhfadpacifaonc", onSuccess, onFailure); } + + taler.onPresent(function () { + document.getElementById("box-present").style.display = "inherit"; + document.getElementById("box-not-present").style.display = "none"; + }); + taler.onAbsent(function () { + document.getElementById("box-present").style.display = "none"; + document.getElementById("box-not-present").style.display = "inherit"; + }); </script> <style type="text/css"> @@ -80,11 +89,11 @@ </ul> Wallets for other browsers will be provided in the near future. </p> - <p class="taler-installed-show bluebox"> + <p class="greenbox" id="box-present" style="display:none"> Congratulations, you have installed the Taler wallet. Check out the <a href="https://demo.taler.net/">demo</a>. </p> - <p class="taler-installed-hide greenbox"> + <p class="bluebox" id="box-not-present" style="display:none"> You don't have a wallet installed yet. </p> </main>