From b9e4c1a22356b3ff588715a9c026ad796ec348ec Mon Sep 17 00:00:00 2001 From: fred Date: Sat, 2 Sep 2023 01:11:17 +0200 Subject: [PATCH] 0.00 WAN --- earth/Umap.html | 6 +++--- earth/map_render.html | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/earth/Umap.html b/earth/Umap.html index 550f29d..2c08e37 100644 --- a/earth/Umap.html +++ b/earth/Umap.html @@ -42,9 +42,9 @@ return results === null ? '' : decodeURIComponent(results[1].replace(/\+/g, ' ')); } - const defaultSouthWestLat = 00.000; - const defaultSouthWestLon = 00.000; - const defaultOffsetDegrees = 10.000; // 10° offset + const defaultSouthWestLat = 0.00; + const defaultSouthWestLon = 0.00; + const defaultOffsetDegrees = 10.00; // 10° offset const southWestLat = parseFloat(getUrlParameter('southWestLat')) || defaultSouthWestLat; console.log('Lat:', southWestLat); diff --git a/earth/map_render.html b/earth/map_render.html index 4492c4e..cb87465 100644 --- a/earth/map_render.html +++ b/earth/map_render.html @@ -157,8 +157,8 @@ if (deg <= 0.01) { button.style.color = '#fff'; // Customize the font color button.addEventListener('click', () => { - const url = `http://astroport.localhost:1234/?uplanet=@&lat=${southWestLat}&lon=${southWestLon}`; -// const url = `https://astroport.copylaradio.com/?uplanet=@&lat=${southWestLat}&lon=${southWestLon}`; +// const url = `http://astroport.localhost:1234/?uplanet=@&lat=${southWestLat}&lon=${southWestLon}`; + const url = `https://astroport.copylaradio.com/?uplanet=@&lat=${southWestLat}&lon=${southWestLon}`; window.location.href = url; });