diff --git a/index.html b/index.html index ca9ac37..4470418 100644 --- a/index.html +++ b/index.html @@ -59,8 +59,8 @@

CSMS Claims and Neighbors

- - + +
View in Google Maps View in Gaia GPS @@ -84,6 +84,9 @@ document.getElementById('consent-banner').style.display = 'block'; } + const googleMapsIframe = document.getElementById('google-maps-iframe'); + const gaiaGpsIframe = document.getElementById('gaia-gps-iframe'); + document.getElementById('gaia-gps-link').addEventListener('click', function(event) { event.preventDefault(); const token = generateToken(16); @@ -94,7 +97,7 @@ 'event_label': 'Gaia GPS', 'value': url }); - window.location.href = url; + gaiaGpsIframe.src = url; }); document.getElementById('google-maps-link').addEventListener('click', function(event) { @@ -107,7 +110,7 @@ 'event_label': 'Google Maps', 'value': url }); - window.location.href = url; + googleMapsIframe.src = url; }); });