From 67bfe5c15dfa7764aec6ef52165d33cfd03c3943 Mon Sep 17 00:00:00 2001 From: Daniel Date: Thu, 1 Aug 2024 20:15:04 -0600 Subject: [PATCH] Update index.html --- index.html | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/index.html b/index.html index 10f84fe..c59e35c 100644 --- a/index.html +++ b/index.html @@ -59,8 +59,8 @@

CSMS Claims and Neighbors

- - + +
View in Google Maps View in Gaia GPS @@ -88,7 +88,7 @@ event.preventDefault(); const token = generateToken(16); localStorage.setItem('gaiaAccessToken', token); - const url = `https://csms.argobox.com/redirect/gaia-gps?token=${token}`; + const url = `/redirect/gaia-gps?token=${token}`; gtag('event', 'click', { 'event_category': 'Outbound Link', 'event_label': 'Gaia GPS', @@ -101,9 +101,20 @@ event.preventDefault(); const token = generateToken(16); localStorage.setItem('googleMapsAccessToken', token); - const url = `https://csms.argobox.com/redirect/google-maps?token=${token}`; + const url = `/redirect/google-maps?token=${token}`; gtag('event', 'click', { 'event_category': 'Outbound Link', 'event_label': 'Google Maps', 'value': url - + }); + window.location.href = url; + }); + }); + + function acceptConsent() { + localStorage.setItem('consentGiven', 'true'); + document.getElementById('consent-banner').style.display = 'none'; + } + + +