From 71ed7e8c97caee87801f42bfefb4c965049ab2b6 Mon Sep 17 00:00:00 2001 From: Michael Bumann Date: Sun, 18 Oct 2020 18:58:09 +0200 Subject: [PATCH] Display loading spinner on send click --- files/root/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/root/index.html b/files/root/index.html index 44002e8..1835357 100644 --- a/files/root/index.html +++ b/files/root/index.html @@ -131,13 +131,13 @@ document.getElementById('send-button').addEventListener('click', function(e) { e.preventDefault(); e.target.setAttribute('disabled', true); + document.getElementById('loader').style.display = 'block'; var amount = document.getElementById('amount').value; var memo = document.getElementById('memo').value; var lnme = new LnMe({ value: amount, memo: memo, target: document.getElementById('lnme-wrapper') }); lnme.showPaymentRequest = function() { document.getElementById('send-button').style.display = 'none'; document.getElementById('lnme-wrapper').style.display = 'block'; - document.getElementById('loader').style.display = 'block'; this.populatePaymentRequest(); } lnme.thanks = function() {