* (qo-op) * now allow to recenter UMAP

This commit is contained in:
fred 2023-09-08 16:58:00 +02:00
parent c29aeb3c7a
commit c1821444cf
1 changed files with 11 additions and 11 deletions

View File

@ -141,20 +141,20 @@ document.addEventListener('DOMContentLoaded', function() {
passElement.value = randomPass.toString();
}
if (latElement && lonElement) {
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
uplanetElement.value = '@'; // Default to '0.00' if lon is missing
}
if (latElement && lonElement) {
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
uplanetElement.value = '@'; // Default to '0.00' if lon is missing
}
// Decalage de - 0.05° = MAP coord SW
const latMAP.value = (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 latMAP = (parseFloat(latElement.value) - 0.05).toFixed(2); // Subtract 0.05 from latElement
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}&deg=0.1`;
document.getElementById("satLink").href = satURL;
const mapURL = `https://ipfs.copylaradio.com/ipfs/QmRG3ZAiXWvKBccPFbv4eUTZFPMsfXG25PiZQD6N8M8MMM/map_render.html?southWestLat=${latMAP.value}&southWestLon=${lonMAP.value}&deg=0.1`;
document.getElementById("mapLink").href = mapURL;
const satURL = `https://ipfs.copylaradio.com/ipfs/Qmduhh6ERX74dx1LhJzB4Bw3ZzM91kAqmPE47BVfMWwYfm/sat_render.html?southWestLat=${latMAP}&southWestLon=${lonMAP}&deg=0.1`;
document.getElementById("satLink").href = satURL;
const mapURL = `https://ipfs.copylaradio.com/ipfs/Qmduhh6ERX74dx1LhJzB4Bw3ZzM91kAqmPE47BVfMWwYfm/map_render.html?southWestLat=${latMAP}&southWestLon=${lonMAP}&deg=0.1`;
document.getElementById("mapLink").href = mapURL;
document.getElementById("LAT").innerHTML = latElement.value ;
document.getElementById("LON").innerHTML = lonElement.value ;