Update to use JavaScript redirects for URL obfuscation

This commit is contained in:
Daniel LaForce 2024-08-02 11:54:34 -06:00
parent 9b03e6617f
commit ee68ac8031
1 changed files with 5 additions and 5 deletions

View File

@ -41,15 +41,15 @@
<iframe src="https://www.google.com/maps/d/embed?mid=1uaJCMW64w_zwERr9nFcVJchrZdocNbA&ll=39.03554998301922,-105.29915470303165&z=14"></iframe>
<iframe src="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"></iframe>
<div class="buttons">
<button onclick="navigateToMap('google')">View on Google Maps</button>
<button onclick="navigateToMap('gaia')">View on Gaia GPS</button>
<button onclick="redirectToMap('google')">View on Google Maps</button>
<button onclick="redirectToMap('gaia')">View on Gaia GPS</button>
</div>
<script>
function navigateToMap(map) {
function redirectToMap(map) {
if (map === 'google') {
window.location.href = '/google-maps';
window.location.replace('/google-maps');
} else if (map === 'gaia') {
window.location.href = '/gaia-gps';
window.location.replace('/gaia-gps');
}
}
</script>