2015-11-25 20:41:31 +01:00
|
|
|
<!doctype html>
|
|
|
|
<script type="text/javascript">
|
|
|
|
"use strict";
|
|
|
|
function talerHandshake() {
|
2015-12-05 16:04:25 +01:00
|
|
|
document.body.addEventListener('taler-wallet-present', function(e) {
|
2015-11-25 20:41:31 +01:00
|
|
|
var x = document.getElementById('indicator');
|
|
|
|
x.innerHTML = 'found!';
|
|
|
|
});
|
|
|
|
var evt = new Event('taler-checkout-probe');
|
2015-12-05 16:04:25 +01:00
|
|
|
document.body.dispatchEvent(evt);
|
2015-11-25 20:41:31 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
window.onload = (e) => talerHandshake();
|
|
|
|
</script>
|
|
|
|
|
|
|
|
Waiting for Taler wallet ... <span id='indicator'></span>
|