* (qo-op) * now allow to recenter UMAP
This commit is contained in:
parent
c29aeb3c7a
commit
c1821444cf
|
@ -141,20 +141,20 @@ document.addEventListener('DOMContentLoaded', function() {
|
||||||
passElement.value = randomPass.toString();
|
passElement.value = randomPass.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (latElement && lonElement) {
|
if (latElement && lonElement) {
|
||||||
latElement.value = salt || '0.00'; // Default to '0.00' if lat is missing
|
latElement.value = salt || '0.00'; // Default to '0.00' if lat is missing
|
||||||
lonElement.value = pepper || '0.00'; // Default to '0.00' if lon is missing
|
lonElement.value = pepper || '0.00'; // Default to '0.00' if lon is missing
|
||||||
uplanetElement.value = '@'; // Default to '0.00' if lon is missing
|
uplanetElement.value = '@'; // Default to '0.00' if lon is missing
|
||||||
}
|
}
|
||||||
|
|
||||||
// Decalage de - 0.05° = MAP coord SW
|
// Decalage de - 0.05° = MAP coord SW
|
||||||
const latMAP.value = (parseFloat(latElement.value) - 0.05).toFixed(2); // Subtract 0.05 from latElement
|
var latMAP = (parseFloat(latElement.value) - 0.05).toFixed(2); // Subtract 0.05 from latElement
|
||||||
const lonMAP.value = (parseFloat(lonElement.value) - 0.05).toFixed(2); // Subtract 0.05 from lonElement
|
var lonMAP = (parseFloat(lonElement.value) - 0.05).toFixed(2); // Subtract 0.05 from lonElement
|
||||||
|
|
||||||
const satURL = `https://ipfs.copylaradio.com/ipfs/QmfVZajimvgkCHhybnwVuKuY1aDzGLBsDbnzSXpN7RmfUm/sat_render.html?southWestLat=${latMAP.value}&southWestLon=${lonMAP.value}°=0.1`;
|
const satURL = `https://ipfs.copylaradio.com/ipfs/Qmduhh6ERX74dx1LhJzB4Bw3ZzM91kAqmPE47BVfMWwYfm/sat_render.html?southWestLat=${latMAP}&southWestLon=${lonMAP}°=0.1`;
|
||||||
document.getElementById("satLink").href = satURL;
|
document.getElementById("satLink").href = satURL;
|
||||||
const mapURL = `https://ipfs.copylaradio.com/ipfs/QmRG3ZAiXWvKBccPFbv4eUTZFPMsfXG25PiZQD6N8M8MMM/map_render.html?southWestLat=${latMAP.value}&southWestLon=${lonMAP.value}°=0.1`;
|
const mapURL = `https://ipfs.copylaradio.com/ipfs/Qmduhh6ERX74dx1LhJzB4Bw3ZzM91kAqmPE47BVfMWwYfm/map_render.html?southWestLat=${latMAP}&southWestLon=${lonMAP}°=0.1`;
|
||||||
document.getElementById("mapLink").href = mapURL;
|
document.getElementById("mapLink").href = mapURL;
|
||||||
|
|
||||||
document.getElementById("LAT").innerHTML = latElement.value ;
|
document.getElementById("LAT").innerHTML = latElement.value ;
|
||||||
document.getElementById("LON").innerHTML = lonElement.value ;
|
document.getElementById("LON").innerHTML = lonElement.value ;
|
||||||
|
|
Loading…
Reference in New Issue