diff options
author | Florian Dold <florian.dold@gmail.com> | 2016-04-27 04:53:41 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2016-04-27 04:53:41 +0200 |
commit | 4265311d9cc643f0682f0441cc58e1aab4b84102 (patch) | |
tree | 7ae904901980f04e8532a81bea5690efea62e2b8 | |
parent | 8ae3721d60e9aad5c7d05479fe6f4a28e23bae9a (diff) | |
download | www-4265311d9cc643f0682f0441cc58e1aab4b84102.tar.gz www-4265311d9cc643f0682f0441cc58e1aab4b84102.tar.bz2 www-4265311d9cc643f0682f0441cc58e1aab4b84102.zip |
better presence detection
-rw-r--r-- | wallet-installation.html | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/wallet-installation.html b/wallet-installation.html index 8db3d961..7920fd36 100644 --- 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> |