|
|
@ -3,10 +3,7 @@ |
|
|
|
<head> |
|
|
|
<title>Payment request</title> |
|
|
|
<script type="text/javascript" charset="utf-8" src="https://code.jquery.com/jquery-1.9.1.min.js"></script> |
|
|
|
<script type="text/javascript" src="https://raw.github.com/datagraph/jquery-jsonrpc/master/jquery.jsonrpc.js"></script> |
|
|
|
<script type="text/javascript" src="https://raw.githubusercontent.com/davidshimjs/qrcodejs/master/qrcode.js"></script> |
|
|
|
|
|
|
|
|
|
|
|
<script type="text/javascript" src="https://code.jquery.com/ui/1.10.3/jquery-ui.js"></script> |
|
|
|
<link rel="stylesheet" type="text/css" href="https://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css"> |
|
|
|
|
|
|
@ -33,8 +30,8 @@ if (id) { |
|
|
|
}) |
|
|
|
.done( function(data) { |
|
|
|
new QRCode(document.getElementById("qrcode"), data.URI); |
|
|
|
$("<p />").text(data.reason).appendTo($("p#reason")); |
|
|
|
$("<p />").text(data.amount + "BTC").appendTo($("p#amount")); |
|
|
|
$("<p />").text(data.memo).appendTo($("p#reason")); |
|
|
|
$("<p />").text(data.amount/100000000 + "BTC").appendTo($("p#amount")); |
|
|
|
$("a").attr("href", data.URI); |
|
|
|
$("<p />").text("Powered by Electrum").appendTo($("p#powered")); |
|
|
|
$(function () { |
|
|
|