From 4724b82b0c426e8f0f3139fa66b9a2d066206b09 Mon Sep 17 00:00:00 2001 From: jeremy-then Date: Fri, 16 Feb 2024 17:14:26 -0400 Subject: [PATCH] Loads selected page on location hash --- index.html | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/index.html b/index.html index 372f1a7..cca9088 100644 --- a/index.html +++ b/index.html @@ -52,6 +52,14 @@ bridgeABIsContainer.classList.add('show'); }); + const loadPageOnLocationHash = () => { + if (location.hash === '#bridgeABIsContainer') { + bridgeABIsContainerLink.click(); + } + }; + + loadPageOnLocationHash(); +