rearrange welcome app
This commit is contained in:
parent
036dedc322
commit
f9798a2dab
|
@ -121,7 +121,9 @@ header {
|
||||||
</div>
|
</div>
|
||||||
<input type=hidden name=g1pub value=''></br>
|
<input type=hidden name=g1pub value=''></br>
|
||||||
|
|
||||||
<input type='submit' value='[(♥‿‿♥)]'>
|
<input id='submit' type='submit' value='[(♥‿‿♥)]'>
|
||||||
|
<span id='countdown'>UPlanet</span>
|
||||||
|
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
@ -149,7 +151,6 @@ header {
|
||||||
|
|
||||||
</h2>
|
</h2>
|
||||||
<br>
|
<br>
|
||||||
<h1><span id='countdown'>G1Visa registration</span></h1>
|
|
||||||
<a href="https://opencollective.com/monnaie-libre/" target="funding">- (^‿‿^) -</a>
|
<a href="https://opencollective.com/monnaie-libre/" target="funding">- (^‿‿^) -</a>
|
||||||
</main>
|
</main>
|
||||||
</body>
|
</body>
|
||||||
|
@ -191,6 +192,20 @@ document.addEventListener('DOMContentLoaded', function() {
|
||||||
document.getElementById("LAT").innerHTML = latElement.value ;
|
document.getElementById("LAT").innerHTML = latElement.value ;
|
||||||
document.getElementById("LON").innerHTML = lonElement.value ;
|
document.getElementById("LON").innerHTML = lonElement.value ;
|
||||||
|
|
||||||
|
if (uplanet === "@" || uplanet === "") {
|
||||||
|
// Hide the countdown div
|
||||||
|
const countdownDiv = document.getElementById('countdown');
|
||||||
|
if (countdownDiv) { // Check if the element exists
|
||||||
|
countdownDiv.style.visibility = 'hidden';
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
const submitDiv = document.getElementById('submit');
|
||||||
|
if (submitDiv) { // Check if the element exists
|
||||||
|
submitDiv.style.visibility = 'hidden';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
@ -246,12 +261,13 @@ function testLatency(cb) {
|
||||||
|
|
||||||
document.getElementById("countdown").innerHTML = "";
|
document.getElementById("countdown").innerHTML = "";
|
||||||
|
|
||||||
var timeLeft = 42;
|
var timeLeft = 90;
|
||||||
var elem = document.getElementById("countdown");
|
var elem = document.getElementById("countdown");
|
||||||
var timerId = setInterval(countdown, 999);
|
var timerId = setInterval(countdown, 999);
|
||||||
|
|
||||||
function countdown() {
|
function countdown() {
|
||||||
if (timeLeft == -1) {
|
if (timeLeft == -1) {
|
||||||
|
document.getElementById('countdown').style.visibility = 'visible';
|
||||||
clearTimeout(timerId);
|
clearTimeout(timerId);
|
||||||
elem.innerHTML = "<a href=http://127.0.0.1:12345 target='aframe'>RETRY</a>"
|
elem.innerHTML = "<a href=http://127.0.0.1:12345 target='aframe'>RETRY</a>"
|
||||||
document.getElementById('aframe').src = 'http://127.0.0.1:12345';
|
document.getElementById('aframe').src = 'http://127.0.0.1:12345';
|
||||||
|
|
Loading…
Reference in New Issue