89 lines
3.2 KiB
HTML
89 lines
3.2 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>CSMS Claims and Neighbors</title>
|
|
<!-- Google tag (gtag.js) -->
|
|
<script async src="https://www.googletagmanager.com/gtag/js?id=G-CC1B9CQ691"></script>
|
|
<script>
|
|
window.dataLayer = window.dataLayer || [];
|
|
function gtag(){dataLayer.push(arguments);}
|
|
gtag('js', new Date());
|
|
gtag('config', 'G-CC1B9CQ691');
|
|
</script>
|
|
<!-- Google Maps API with async loading -->
|
|
<script async defer src="https://maps.googleapis.com/maps/api/js?key=YOUR_ACTUAL_API_KEY&libraries=places,visualization,geometry,search"></script>
|
|
<style>
|
|
body {
|
|
font-family: Arial, sans-serif;
|
|
text-align: center;
|
|
}
|
|
iframe {
|
|
border: none;
|
|
}
|
|
.button {
|
|
display: inline-block;
|
|
margin: 10px;
|
|
padding: 10px 20px;
|
|
font-size: 16px;
|
|
color: white;
|
|
background-color: #007bff;
|
|
border: none;
|
|
border-radius: 5px;
|
|
text-decoration: none;
|
|
}
|
|
.button:hover {
|
|
background-color: #0056b3;
|
|
}
|
|
#consent-banner {
|
|
position: fixed;
|
|
bottom: 0;
|
|
width: 100%;
|
|
background: #333;
|
|
color: #fff;
|
|
padding: 10px;
|
|
text-align: center;
|
|
display: none;
|
|
}
|
|
</style>
|
|
<script>
|
|
function generateToken(length) {
|
|
const characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
|
|
let result = '';
|
|
const charactersLength = characters.length;
|
|
for (let i = 0; i < length; i++) {
|
|
result += characters.charAt(Math.floor(Math.random() * charactersLength));
|
|
}
|
|
return result;
|
|
}
|
|
|
|
document.addEventListener('DOMContentLoaded', function() {
|
|
if (!localStorage.getItem('consentGiven')) {
|
|
document.getElementById('consent-banner').style.display = 'block';
|
|
}
|
|
|
|
document.getElementById('gaia-gps-link').addEventListener('click', function(event) {
|
|
const token = generateToken(16);
|
|
localStorage.setItem('accessToken', token);
|
|
this.href = 'landing.html?token=' + token;
|
|
});
|
|
});
|
|
|
|
function acceptConsent() {
|
|
localStorage.setItem('consentGiven', 'true');
|
|
document.getElementById('consent-banner').style.display = 'none';
|
|
}
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<h1>CSMS Claims and Neighbors</h1>
|
|
<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>
|
|
<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="#" target="_blank" class="button" id="gaia-gps-link">View in Gaia GPS</a>
|
|
<div id="consent-banner">
|
|
This site uses cookies to improve your experience. By continuing to browse, you accept the use of cookies.
|
|
<button onclick="acceptConsent()">Accept</button>
|
|
</div>
|
|
</body>
|
|
</html>
|