mirror of
https://github.com/ChuckNorrison/LightningTipBot.git
synced 2026-08-13 12:33:14 +02:00
scroll up
This commit is contained in:
parent
55ba146592
commit
cb19e7375a
1 changed files with 10 additions and 2 deletions
|
|
@ -65,7 +65,7 @@
|
|||
margin: 15px 0;
|
||||
border: none;
|
||||
border-radius: 4px;
|
||||
background-color: var(--tg-theme-secondary-bg-color, #f5f5f5);
|
||||
background-color: var(--tg-theme-bg-color, #f5f5f5);
|
||||
color: var(--tg-theme-text-color, #1a1a1a);
|
||||
}
|
||||
|
||||
|
|
@ -239,7 +239,7 @@
|
|||
<input type="number" id="invoiceAmount" placeholder="amount in sat" style="width: 80%"></input>
|
||||
</div>
|
||||
<div>
|
||||
<button onclick="getInvoice(this, {{.Callback}});" style="display: inline;" id="requestInvoice">Invoice</button>
|
||||
<button onclick="invoiceButtonClick();" style="display: inline;" id="requestInvoice">Invoice</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -284,6 +284,14 @@
|
|||
|
||||
// ------------------ functions ------------------
|
||||
|
||||
function invoiceButtonClick() {
|
||||
var c = "{{.Callback}}";
|
||||
getInvoice(this, c);
|
||||
// hide keyboard and scroll up
|
||||
document.getElementById("invoiceAmount").blur();
|
||||
window.scrollTo(0, 0);
|
||||
}
|
||||
|
||||
function webviewClose() {
|
||||
Telegram.WebApp.close();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue