diff --git a/gaia-landing.html b/gaia-landing.html
new file mode 100644
index 0000000..00434d2
--- /dev/null
+++ b/gaia-landing.html
@@ -0,0 +1,26 @@
+
+
+
+ Redirecting to Gaia GPS...
+
+
+
+ Redirecting to Gaia GPS...
+
+
diff --git a/google-maps-landing.html b/google-maps-landing.html
new file mode 100644
index 0000000..2462b29
--- /dev/null
+++ b/google-maps-landing.html
@@ -0,0 +1,26 @@
+
+
+
+ Redirecting to Google Maps...
+
+
+
+ Redirecting to Google Maps...
+
+
diff --git a/index.html b/index.html
index 051e176..0028a5b 100644
--- a/index.html
+++ b/index.html
@@ -56,6 +56,10 @@
return result;
}
+ function getReferrer() {
+ return document.referrer;
+ }
+
document.addEventListener('DOMContentLoaded', function() {
if (!localStorage.getItem('consentGiven')) {
document.getElementById('consent-banner').style.display = 'block';
@@ -63,8 +67,14 @@
document.getElementById('gaia-gps-link').addEventListener('click', function(event) {
const token = generateToken(16);
- localStorage.setItem('accessToken', token);
- this.href = 'landing.html?token=' + token;
+ localStorage.setItem('gaiaAccessToken', token);
+ this.href = 'gaia-landing.html?token=' + token + '&referrer=' + encodeURIComponent(getReferrer());
+ });
+
+ document.getElementById('google-maps-link').addEventListener('click', function(event) {
+ const token = generateToken(16);
+ localStorage.setItem('googleMapsAccessToken', token);
+ this.href = 'google-maps-landing.html?token=' + token + '&referrer=' + encodeURIComponent(getReferrer());
});
});
@@ -78,7 +88,7 @@
CSMS Claims and Neighbors
- View in Google Maps
+ View in Google Maps
View in Gaia GPS
This site uses cookies to improve your experience. By continuing to browse, you accept the use of cookies.