commit b56cd0642feaf33160cd8872191102199a7366ef
parent 3721564786adf63702f9329024e60cf26ec2f62f
Author: William Casarin <jb55@jb55.com>
Date: Fri, 29 Jul 2022 10:27:48 -0700
updates
Signed-off-by: William Casarin <jb55@jb55.com>
Diffstat:
4 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/android/index.html b/android/index.html
@@ -52,5 +52,5 @@
<script src="/js/qrcode.min.js" > </script>
<script src="/js/lnsocket.js?v=10" > </script>
- <script src="/js/tipjar.js?v=21" ></script>
+ <script src="/js/tipjar.js?v=23" ></script>
</html>
diff --git a/css/skeleton.css b/css/skeleton.css
@@ -121,6 +121,7 @@ are based on 10px sizing. So basically 1.5rem = 15px :) */
html {
font-size: 62.5%; }
body {
+ min-height: 800px;
font-size: 1.6em; /* currently ems cause chrome bug misinterpreting rems on body element */
line-height: 1.6;
font-weight: 400;
diff --git a/js/tipjar.js b/js/tipjar.js
@@ -12,7 +12,7 @@ async function make_request(method, rune, params) {
}
function fetch_tipjar_summary() {
- const rune = "b3Xsg2AS2cknHYa6H94so7FAVQVdnRSP6Pv-1WOQEBc9NCZtZXRob2Q9b2ZmZXItc3VtbWFyeQ=="
+ const rune = "5sgpXcVRMy19h2Ai9LiklJ7jI_J3qNnnG36wvyViqR49OTQmbWV0aG9kPW9mZmVyLXN1bW1hcnkmcG5hbWVkZXNjcmlwdGlvbj1AZGFtdXMtYW5kcm9pZCZwbmFtZWxpbWl0PTU="
return make_request("offer-summary", rune, {
offerid: "2043536dfec68d559102f73510927622812a230cfdda079e96fccbfe35a96d11",
description: "@damus-android",
@@ -24,7 +24,7 @@ function make_invoice(description) {
const rune = "LZwGZJO7wZgmoScFQb5reZ0Ii8qPKCeUfTb-UcbDxWw9MTImbWV0aG9kPWludm9pY2U="
description = (description && `${description} @damus-android`) || "@damus-android donation"
return make_request("invoice", rune, {
- msatoshi: "any",
+ amount_msat: "any",
label: `damus-android-${new Date().getTime()}`,
description: description
})
@@ -122,7 +122,7 @@ function render_tip(tip)
{
let note = tip.payer_note ? tip.payer_note : (tip.description || "Anonymous")
note = note.replace("@damus-android", "")
- const amount = format_amount(tip.msatoshi / 1000)
+ const amount = format_amount(tip.amount_msat / 1000)
const now = Math.floor(new Date().getTime() / 1000)
const date = time_delta(now * 1000, tip.paid_at * 1000)
diff --git a/key/index.html b/key/index.html
@@ -13,7 +13,7 @@
<meta name="twitter:card" content="summary_large_image">
<link rel="stylesheet" href="/css/normalize.css">
- <link rel="stylesheet" href="/css/skeleton.css?v=2">
+ <link rel="stylesheet" href="/css/skeleton.css?v=3">
<link rel="stylesheet" href="/css/custom.css?v=4">
</head>