This commit is contained in:
fred 2023-09-02 01:11:17 +02:00
parent fe97b57d4f
commit b9e4c1a223
2 changed files with 5 additions and 5 deletions

View File

@ -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);

View File

@ -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;
});