Update index.html

This commit is contained in:
Daniel LaForce 2024-08-01 17:48:02 -06:00
parent d4925ae924
commit cf83e3ca8c
1 changed files with 12 additions and 2 deletions

View File

@ -11,7 +11,7 @@
gtag('config', 'G-CC1B9CQ691'); gtag('config', 'G-CC1B9CQ691');
</script> </script>
<!-- Google Maps API with async loading --> <!-- Google Maps API with async loading -->
<script async defer src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&libraries=places,visualization,geometry,search"></script> <script async defer src="https://maps.googleapis.com/maps/api/js?key=YOUR_ACTUAL_API_KEY&libraries=places,visualization,geometry,search"></script>
<style> <style>
body { body {
font-family: Arial, sans-serif; font-family: Arial, sans-serif;
@ -44,12 +44,22 @@
text-align: center; text-align: center;
display: none; display: none;
} }
#gaia-gps-link {
display: none;
}
</style> </style>
<script> <script>
document.addEventListener('DOMContentLoaded', function() { document.addEventListener('DOMContentLoaded', function() {
if (!localStorage.getItem('consentGiven')) { if (!localStorage.getItem('consentGiven')) {
document.getElementById('consent-banner').style.display = 'block'; document.getElementById('consent-banner').style.display = 'block';
} }
var allowedReferrer = 'https://yourwebsite.com'; // Update with your actual website URL
var referrer = document.referrer;
if (referrer && referrer.indexOf(allowedReferrer) === 0) {
document.getElementById('gaia-gps-link').style.display = 'inline-block';
}
}); });
function acceptConsent() { function acceptConsent() {
@ -63,7 +73,7 @@
<iframe src="https://www.google.com/maps/d/embed?mid=1uaJCMW64w_zwERr9nFcVJchrZdocNbA&ll=39.03966489533956%2C-105.32945964046155&z=14" width="800" height="600"></iframe> <iframe src="https://www.google.com/maps/d/embed?mid=1uaJCMW64w_zwERr9nFcVJchrZdocNbA&ll=39.03966489533956%2C-105.32945964046155&z=14" width="800" height="600"></iframe>
<br> <br>
<a href="https://www.google.com/maps/d/u/0/viewer?mid=1uaJCMW64w_zwERr9nFcVJchrZdocNbA&ll=39.035283304733184%2C-105.2908042761522&z=14" target="_blank" class="button">View in Google Maps</a> <a href="https://www.google.com/maps/d/u/0/viewer?mid=1uaJCMW64w_zwERr9nFcVJchrZdocNbA&ll=39.035283304733184%2C-105.2908042761522&z=14" target="_blank" class="button">View in Google Maps</a>
<a href="https://www.gaiagps.com/map/?lat=39.03966489533956&lon=-105.32945964046155&zoom=14&loc=14.0/-105.3120/39.0318&pubLink=VVXcZPvEfvAbvRWi5F0DQPNT&folderId=e810350b-1b3f-49bf-8f67-6a497827f190" target="_blank" class="button">View in Gaia GPS</a> <a href="https://www.gaiagps.com/map/?lat=39.03966489533956&lon=-105.32945964046155&zoom=14&loc=14.0/-105.3120/39.0318&pubLink=VVXcZPvEfvAbvRWi5F0DQPNT&folderId=e810350b-1b3f-49bf-8f67-6a497827f190" target="_blank" class="button" id="gaia-gps-link">View in Gaia GPS</a>
<div id="consent-banner"> <div id="consent-banner">
This site uses cookies to improve your experience. By continuing to browse, you accept the use of cookies. This site uses cookies to improve your experience. By continuing to browse, you accept the use of cookies.
<button onclick="acceptConsent()">Accept</button> <button onclick="acceptConsent()">Accept</button>