summaryrefslogtreecommitdiff
path: root/examples/blog/essay_cc-form.html
diff options
context:
space:
mode:
Diffstat (limited to 'examples/blog/essay_cc-form.html')
-rw-r--r--examples/blog/essay_cc-form.html16
1 files changed, 15 insertions, 1 deletions
diff --git a/examples/blog/essay_cc-form.html b/examples/blog/essay_cc-form.html
index 21755409..268861ff 100644
--- a/examples/blog/essay_cc-form.html
+++ b/examples/blog/essay_cc-form.html
@@ -2,7 +2,7 @@
<head>
<link rel="stylesheet" type="text/css" href="../style.css">
</head>
- <body lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">
+ <body style="display:none;" lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">
<header>
<div id="logo"><a href="/"><img src="../gnu.svg" height="100" width="100"/></a></div>
<h1>Credit card payment</h1>
@@ -66,13 +66,27 @@
contract_request.send();
}
+ var walletNotPresent = false;
+
function has_taler_wallet_cb(aEvent){
+ if (walletNotPresent) {
+ return;
+ }
+ // FIXME: this is a template, but very ugly ...
{jscode}
};
+
+
+ function handleTimeout() {
+ walletNotPresent = true;
+ document.body.style.display = "";
+ }
document.addEventListener("taler-wallet-present",
has_taler_wallet_cb,
false);
+
+ window.setTimeout(handleTimeout, 200);
// Register event to be triggered by the wallet when it gets enabled while
// the user is on the payment page