add pay button

This commit is contained in:
2025-12-07 00:41:00 +01:00
parent 15e33fcfdd
commit ff34340bdc

View File

@@ -42,7 +42,7 @@
</div>
<div id="payment">
<h2>Payment</h2>
<input id="amount-input" placeholder="Amount">
<input id="token-input" placeholder="Token">
<br>
<button>Pay</button>
</div>
@@ -50,8 +50,10 @@
<script>
let btn = document.getElementById("connect-button");
btn.addEventListener("click", async () => {
let btnConnect = document.getElementById("connect-button");
let btnPay = document.getElementById("connect-button");
btnConnect.addEventListener("click", async () => {
let username = document.getElementById("username-field").value;
let pwd = document.getElementById("password-field").value;