updates
Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
parent
3721564786
commit
b56cd0642f
4 changed files with 6 additions and 5 deletions
|
@ -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>
|
||||
|
|
1
css/skeleton.css
vendored
1
css/skeleton.css
vendored
|
@ -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;
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue