Update index.html
This commit is contained in:
parent
d56e9a7c8a
commit
48b541f32b
11
index.html
11
index.html
|
@ -59,8 +59,8 @@
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1>CSMS Claims and Neighbors</h1>
|
<h1>CSMS Claims and Neighbors</h1>
|
||||||
<iframe id="google-maps-iframe" src=""></iframe>
|
<iframe id="google-maps-iframe" src="https://csms.argobox.com/redirect/google-maps"></iframe>
|
||||||
<iframe id="gaia-gps-iframe" src=""></iframe>
|
<iframe id="gaia-gps-iframe" src="https://csms.argobox.com/redirect/gaia-gps"></iframe>
|
||||||
<div id="button-container">
|
<div id="button-container">
|
||||||
<a href="#" class="button" id="google-maps-link">View in Google Maps</a>
|
<a href="#" class="button" id="google-maps-link">View in Google Maps</a>
|
||||||
<a href="#" class="button" id="gaia-gps-link">View in Gaia GPS</a>
|
<a href="#" class="button" id="gaia-gps-link">View in Gaia GPS</a>
|
||||||
|
@ -70,7 +70,10 @@
|
||||||
<button onclick="acceptConsent()">Accept</button>
|
<button onclick="acceptConsent()">Accept</button>
|
||||||
</div>
|
</div>
|
||||||
<script>
|
<script>
|
||||||
|
console.log("Script loaded");
|
||||||
|
|
||||||
function generateToken(length) {
|
function generateToken(length) {
|
||||||
|
console.log("Generating token");
|
||||||
const characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
|
const characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
|
||||||
let result = '';
|
let result = '';
|
||||||
for (let i = 0; i < length; i++) {
|
for (let i = 0; i < length; i++) {
|
||||||
|
@ -80,6 +83,8 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
document.addEventListener('DOMContentLoaded', function() {
|
document.addEventListener('DOMContentLoaded', function() {
|
||||||
|
console.log("DOM fully loaded and parsed");
|
||||||
|
|
||||||
if (!localStorage.getItem('consentGiven')) {
|
if (!localStorage.getItem('consentGiven')) {
|
||||||
document.getElementById('consent-banner').style.display = 'block';
|
document.getElementById('consent-banner').style.display = 'block';
|
||||||
}
|
}
|
||||||
|
@ -95,6 +100,7 @@
|
||||||
'value': url
|
'value': url
|
||||||
});
|
});
|
||||||
document.getElementById('gaia-gps-iframe').src = url;
|
document.getElementById('gaia-gps-iframe').src = url;
|
||||||
|
console.log("Gaia GPS URL: ", url);
|
||||||
});
|
});
|
||||||
|
|
||||||
document.getElementById('google-maps-link').addEventListener('click', function(event) {
|
document.getElementById('google-maps-link').addEventListener('click', function(event) {
|
||||||
|
@ -108,6 +114,7 @@
|
||||||
'value': url
|
'value': url
|
||||||
});
|
});
|
||||||
document.getElementById('google-maps-iframe').src = url;
|
document.getElementById('google-maps-iframe').src = url;
|
||||||
|
console.log("Google Maps URL: ", url);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue