From 9934b506c2407eb32cf5cfcf332cbaae33f37ae1 Mon Sep 17 00:00:00 2001 From: void-57 Date: Sun, 9 Nov 2025 05:31:42 +0530 Subject: [PATCH] switch to transactions tab and update navigation states for address and hash searches --- index.html | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/index.html b/index.html index cf7f622..ad611ea 100644 --- a/index.html +++ b/index.html @@ -1668,6 +1668,15 @@ await loadTransactionsPage(currentPage); updateURLWithAddress(address); + // Switch to transactions tab for address searches + showPage('transactions'); + + // Update active states for navigation + const navLinks = document.querySelectorAll('.nav-link, .nav-btn'); + navLinks.forEach(l => l.classList.remove('active')); + document.querySelectorAll(`.nav-link[data-page="transactions"], .nav-btn[data-page="transactions"]`) + .forEach(l => l.classList.add('active')); + showNotification('Loaded successfully!', 'success'); } catch (error) { @@ -1913,6 +1922,15 @@ // Update URL with hash parameter updateURLWithHash(transactionHash); + // Switch to transactions tab for hash searches + showPage('transactions'); + + // Update active states for navigation + const navLinks = document.querySelectorAll('.nav-link, .nav-btn'); + navLinks.forEach(l => l.classList.remove('active')); + document.querySelectorAll(`.nav-link[data-page="transactions"], .nav-btn[data-page="transactions"]`) + .forEach(l => l.classList.add('active')); + showNotification('Transaction details loaded successfully', 'success'); } catch (error) {