17 lines
461 B
HTML
17 lines
461 B
HTML
<!doctype html>
|
|
<script type="text/javascript">
|
|
"use strict";
|
|
function talerHandshake() {
|
|
document.body.addEventListener('taler-wallet-present', function(e) {
|
|
var x = document.getElementById('indicator');
|
|
x.innerHTML = 'found!';
|
|
});
|
|
var evt = new Event('taler-checkout-probe');
|
|
document.body.dispatchEvent(evt);
|
|
}
|
|
|
|
window.onload = (e) => talerHandshake();
|
|
</script>
|
|
|
|
Waiting for Taler wallet ... <span id='indicator'></span>
|