diff --git a/templates/register.html b/templates/register.html index c96cea6b..dec8ff4c 100644 --- a/templates/register.html +++ b/templates/register.html @@ -121,7 +121,9 @@ header {
- + + UPlanet + @@ -149,7 +151,6 @@ header {
-

G1Visa registration

- (^‿‿^) - @@ -191,6 +192,20 @@ document.addEventListener('DOMContentLoaded', function() { document.getElementById("LAT").innerHTML = latElement.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'; + } + } + + }); @@ -246,12 +261,13 @@ function testLatency(cb) { document.getElementById("countdown").innerHTML = ""; - var timeLeft = 42; + var timeLeft = 90; var elem = document.getElementById("countdown"); var timerId = setInterval(countdown, 999); function countdown() { if (timeLeft == -1) { + document.getElementById('countdown').style.visibility = 'visible'; clearTimeout(timerId); elem.innerHTML = "RETRY" document.getElementById('aframe').src = 'http://127.0.0.1:12345';