SatSale

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 9b5a5728017740c3869afaca1614d1dd89e6c9f3
parent a0318a23769596ec5b883a9304d302e250fe7cf7
Author: nickfarrow <nick@nickfarrow.com>
Date:   Mon, 17 May 2021 19:24:38 +1000

SATS THE STANDARD

Diffstat:
Mstatic/server_connection.js | 1+
Mtemplates/index.html | 3++-
2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/static/server_connection.js b/static/server_connection.js @@ -20,6 +20,7 @@ function initiate(payment_data) { $('#address').text(msg.address).html(); // Display payment amount $('#amount').text(msg.amount).html(); + $('#amount_sats').text(round(msg.amount * 10**8)).html(); // Display payment time left $('#timer').text(Math.round(msg.time_left)).html(); diff --git a/templates/index.html b/templates/index.html @@ -35,7 +35,8 @@ <div id="paymentDetails" style="display:block; padding: 0;"> - <p style="padding:0;">Send: <b><span id="amount"></span></b> BTC</p> + <p style="padding:0;">Send: <b><span id="amount_sats"></span></b> sats</p> + <p style="padding:0;">&nbsp&nbsp&nbsp&nbsp&nbsp(<b><span id="amount"></span></b> BTC)</p> <p style="padding:0;">To: </p><b><p id="address" onclick="copyTextFromElement('address')"></p></b> <p style="padding:0;"><span id="status"></span></p> <p id="timerContainer" style="padding:0;"><span id="timer"></span> seconds remaining.</p>