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.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 @@ | |||
44 | function installWallet() { | 44 | function installWallet() { |
45 | chrome.webstore.install("https://chrome.google.com/webstore/detail/millncjiddlpgdmkklmhfadpacifaonc", onSuccess, onFailure); | 45 | chrome.webstore.install("https://chrome.google.com/webstore/detail/millncjiddlpgdmkklmhfadpacifaonc", onSuccess, onFailure); |
46 | } | 46 | } |
47 | |||
48 | taler.onPresent(function () { | ||
49 | document.getElementById("box-present").style.display = "inherit"; | ||
50 | document.getElementById("box-not-present").style.display = "none"; | ||
51 | }); | ||
52 | taler.onAbsent(function () { | ||
53 | document.getElementById("box-present").style.display = "none"; | ||
54 | document.getElementById("box-not-present").style.display = "inherit"; | ||
55 | }); | ||
47 | </script> | 56 | </script> |
48 | 57 | ||
49 | <style type="text/css"> | 58 | <style type="text/css"> |
@@ -80,11 +89,11 @@ | |||
80 | </ul> | 89 | </ul> |
81 | Wallets for other browsers will be provided in the near future. | 90 | Wallets for other browsers will be provided in the near future. |
82 | </p> | 91 | </p> |
83 | <p class="taler-installed-show bluebox"> | 92 | <p class="greenbox" id="box-present" style="display:none"> |
84 | Congratulations, you have installed the Taler wallet. | 93 | Congratulations, you have installed the Taler wallet. |
85 | Check out the <a href="https://demo.taler.net/">demo</a>. | 94 | Check out the <a href="https://demo.taler.net/">demo</a>. |
86 | </p> | 95 | </p> |
87 | <p class="taler-installed-hide greenbox"> | 96 | <p class="bluebox" id="box-not-present" style="display:none"> |
88 | You don't have a wallet installed yet. | 97 | You don't have a wallet installed yet. |
89 | </p> | 98 | </p> |
90 | </main> | 99 | </main> |