amount is in satoshis
This commit is contained in:
parent
9bd94e5062
commit
d367930113
|
@ -3,10 +3,7 @@
|
||||||
<head>
|
<head>
|
||||||
<title>Payment request</title>
|
<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" 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://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>
|
<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">
|
<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) {
|
.done( function(data) {
|
||||||
new QRCode(document.getElementById("qrcode"), data.URI);
|
new QRCode(document.getElementById("qrcode"), data.URI);
|
||||||
$("<p />").text(data.reason).appendTo($("p#reason"));
|
$("<p />").text(data.memo).appendTo($("p#reason"));
|
||||||
$("<p />").text(data.amount + "BTC").appendTo($("p#amount"));
|
$("<p />").text(data.amount/100000000 + "BTC").appendTo($("p#amount"));
|
||||||
$("a").attr("href", data.URI);
|
$("a").attr("href", data.URI);
|
||||||
$("<p />").text("Powered by Electrum").appendTo($("p#powered"));
|
$("<p />").text("Powered by Electrum").appendTo($("p#powered"));
|
||||||
$(function () {
|
$(function () {
|
||||||
|
|
Loading…
Reference in New Issue