Update index.html

This commit is contained in:
Daniel LaForce 2024-08-01 20:32:24 -06:00
parent caf1b31a6b
commit 743ecc66b6
1 changed files with 18 additions and 2 deletions

View File

@ -59,8 +59,8 @@
</head> </head>
<body> <body>
<h1>CSMS Claims and Neighbors</h1> <h1>CSMS Claims and Neighbors</h1>
<iframe src="/redirect/google-maps"></iframe> <iframe src="/redirect/google-maps" id="google-maps-iframe"></iframe>
<iframe src="/redirect/gaia-gps"></iframe> <iframe src="/redirect/gaia-gps" id="gaia-gps-iframe"></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>
@ -113,6 +113,22 @@
}); });
window.location.href = url; window.location.href = url;
}); });
document.getElementById('google-maps-iframe').addEventListener('load', function() {
console.log('Google Maps iframe loaded successfully.');
});
document.getElementById('gaia-gps-iframe').addEventListener('load', function() {
console.log('Gaia GPS iframe loaded successfully.');
});
document.getElementById('google-maps-iframe').addEventListener('error', function() {
console.error('Error loading Google Maps iframe.');
});
document.getElementById('gaia-gps-iframe').addEventListener('error', function() {
console.error('Error loading Gaia GPS iframe.');
});
}); });
function acceptConsent() { function acceptConsent() {