(<span id='LAT'></span>:<span id='LON'></span>) registration<br>
This commit is contained in:
parent
b6cd5ab63d
commit
955ac3d382
|
@ -91,7 +91,8 @@ header {
|
||||||
</h3>
|
</h3>
|
||||||
<input name='pepper' value='0.00'>
|
<input name='pepper' value='0.00'>
|
||||||
</div>
|
</div>
|
||||||
<span>PASS : </span><input name='g1pub' size=6 value=''></br></br>
|
<input type=hidden name=g1pub value=''></br>
|
||||||
|
(<span id='LAT'></span>:<span id='LON'></span>) registration<br>
|
||||||
|
|
||||||
<input type='submit' value='[(♥‿‿♥)]'>
|
<input type='submit' value='[(♥‿‿♥)]'>
|
||||||
|
|
||||||
|
@ -134,22 +135,26 @@ document.addEventListener('DOMContentLoaded', function() {
|
||||||
const uplanetElement = document.querySelector('input[name="uplanet"]');
|
const uplanetElement = document.querySelector('input[name="uplanet"]');
|
||||||
const passElement = document.querySelector('input[name="g1pub"]');
|
const passElement = document.querySelector('input[name="g1pub"]');
|
||||||
|
|
||||||
// Generate a random 6-digit number and set it as the default value for "PASS"
|
//~ // Generate a random 6-digit number and set it as the default value for "PASS"
|
||||||
//~ if (passElement) {
|
if (passElement) {
|
||||||
//~ const randomPass = Math.floor(100000 + Math.random() * 900000); // Generates a random 6-digit number
|
const randomPass = Math.floor(100000 + Math.random() * 900000); // Generates a random 6-digit number
|
||||||
//~ 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
|
||||||
}
|
}
|
||||||
|
|
||||||
const satURL = `https://ipfs.copylaradio.com/ipfs/QmfVZajimvgkCHhybnwVuKuY1aDzGLBsDbnzSXpN7RmfUm/sat_render.html?southWestLat=${latElement.value}&southWestLon=${lonElement.value}°=0.1`;
|
const satURL = `https://ipfs.copylaradio.com/ipfs/QmfVZajimvgkCHhybnwVuKuY1aDzGLBsDbnzSXpN7RmfUm/sat_render.html?southWestLat=${latElement.value}&southWestLon=${lonElement.value}°=0.1`;
|
||||||
document.getElementById("satLink").href = satURL;
|
document.getElementById("satLink").href = satURL;
|
||||||
const mapURL = `https://ipfs.copylaradio.com/ipfs/QmRG3ZAiXWvKBccPFbv4eUTZFPMsfXG25PiZQD6N8M8MMM/map_render.html?southWestLat=${latElement.value}&southWestLon=${lonElement.value}°=0.1`;
|
const mapURL = `https://ipfs.copylaradio.com/ipfs/QmRG3ZAiXWvKBccPFbv4eUTZFPMsfXG25PiZQD6N8M8MMM/map_render.html?southWestLat=${latElement.value}&southWestLon=${lonElement.value}°=0.1`;
|
||||||
document.getElementById("mapLink").href = mapURL;
|
document.getElementById("mapLink").href = mapURL;
|
||||||
|
|
||||||
|
document.getElementById("LAT").innerHTML = latElement.value ;
|
||||||
|
document.getElementById("LON").innerHTML = lonElement.value ;
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue