From e7568349e7b749d0033a3ebf7abcbca293bbcc7f Mon Sep 17 00:00:00 2001 From: void-57 Date: Tue, 20 Jan 2026 06:36:59 +0530 Subject: [PATCH] feat: Enable clickable addresses and transaction hashes to populate the balance lookup field and initiate a search. --- index.html | 32 ++++++++++++++++++++++++++++---- 1 file changed, 28 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index 01b8042..e226d67 100644 --- a/index.html +++ b/index.html @@ -767,7 +767,17 @@ const TRANSACTIONS_PER_PAGE = 10; function checkBalance(ethAddress, floAddress) { - if (!ethAddress) { + if (ethAddress) { + // If address is provided sync the input box + const searchInput = document.querySelector('#check_balance_input'); + if (searchInput) { + searchInput.value = ethAddress; + const nativeInput = searchInput.querySelector('input'); + if (nativeInput) { + nativeInput.value = ethAddress; + } + } + } else { let keyToConvert = document.querySelector('#check_balance_input').value.trim() // Check if input is empty @@ -1031,7 +1041,7 @@
${amountPrefix}${tx.value.toFixed(8)} ${tx.symbol}
- ${directionText} ${displayAddress} + ${directionText} { e.preventDefault(); checkBalance(displayAddress); }}>${displayAddress}