js-wallet.html (665B)
1 <html lang="en"> 2 <head> 3 <script src="/web-common/taler-wallet-lib.js" type="application/javascript"> 4 </script> 5 </head> 6 <body> 7 <div id="content"> 8 </div> 9 <script type="application/javascript"> 10 11 content = document.getElementById("content"); 12 p = document.createElement("p"); 13 14 function walletInstalled(){ 15 p.textContent = "Wallet installed!"; 16 content.appendChild(p); 17 } 18 function walletNotInstalled(){ 19 p.textContent = "Wallet not found."; 20 content.appendChild(p); 21 } 22 taler.onPresent(wallerInstalled); 23 taler.onAbsent(wallerNotInstalled); 24 </script> 25 </body> 26 </html>