0.00 WAN
This commit is contained in:
parent
fe97b57d4f
commit
b9e4c1a223
|
@ -42,9 +42,9 @@
|
||||||
return results === null ? '' : decodeURIComponent(results[1].replace(/\+/g, ' '));
|
return results === null ? '' : decodeURIComponent(results[1].replace(/\+/g, ' '));
|
||||||
}
|
}
|
||||||
|
|
||||||
const defaultSouthWestLat = 00.000;
|
const defaultSouthWestLat = 0.00;
|
||||||
const defaultSouthWestLon = 00.000;
|
const defaultSouthWestLon = 0.00;
|
||||||
const defaultOffsetDegrees = 10.000; // 10° offset
|
const defaultOffsetDegrees = 10.00; // 10° offset
|
||||||
|
|
||||||
const southWestLat = parseFloat(getUrlParameter('southWestLat')) || defaultSouthWestLat;
|
const southWestLat = parseFloat(getUrlParameter('southWestLat')) || defaultSouthWestLat;
|
||||||
console.log('Lat:', southWestLat);
|
console.log('Lat:', southWestLat);
|
||||||
|
|
|
@ -157,8 +157,8 @@ if (deg <= 0.01) {
|
||||||
button.style.color = '#fff'; // Customize the font color
|
button.style.color = '#fff'; // Customize the font color
|
||||||
|
|
||||||
button.addEventListener('click', () => {
|
button.addEventListener('click', () => {
|
||||||
const url = `http://astroport.localhost:1234/?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}`;
|
const url = `https://astroport.copylaradio.com/?uplanet=@&lat=${southWestLat}&lon=${southWestLon}`;
|
||||||
window.location.href = url;
|
window.location.href = url;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue