summaryrefslogtreecommitdiff
path: root/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'index.html')
-rw-r--r--index.html17
1 files changed, 16 insertions, 1 deletions
diff --git a/index.html b/index.html
index 6271924..457a652 100644
--- a/index.html
+++ b/index.html
@@ -16,10 +16,22 @@
}
var xs = document.querySelectorAll(".taler-installed");
for (var i = 0; i < xs.length; i++) {
- xs[i].style.display = "";
+ xs[i].style.display = "inherit";
+ }
+ }
+ function handlePresent() {
+ console.log("handling onPresent event");
+ var xs = document.querySelectorAll(".taler-not-installed");
+ for (var i = 0; i < xs.length; i++) {
+ xs[i].style.display = "inherit";
+ }
+ var xs = document.querySelectorAll(".taler-installed");
+ for (var i = 0; i < xs.length; i++) {
+ xs[i].style.display = "none";
}
}
taler.onPresent(handlePresent);
+ taler.onAbsent(handleAbsent);
</script>
<style type="text/css">
@@ -31,6 +43,9 @@
.taler-installed {
display: none;
}
+ .taler-not-installed {
+ display: none;
+ }
.bluebox {
background-color: #C2C6FF;