From e444af2adfac0e3e0f3b70c75cc74f33424c58c4 Mon Sep 17 00:00:00 2001 From: ThiML10 <157675695+ThiML10@users.noreply.github.com> Date: Sat, 27 Apr 2024 03:02:46 +0000 Subject: [PATCH] commit2 --- html/index.html | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/html/index.html b/html/index.html index 8038d50..9b0d0c1 100644 --- a/html/index.html +++ b/html/index.html @@ -436,10 +436,9 @@

Timer: 30 seconds

document.getElementById('nickForm').addEventListener('submit', function(event) { - event.preventDefault(); // Prevent the default form submission + event.preventDefault(); var nickInput = document.getElementById('nickInput').value.trim(); - // Simulate a check for nickname uniqueness if (nickInput && isNickUnique(nickInput)) { // Implement isNickUnique() to check the nickname document.getElementById('welcomeContainer').style.display = 'none'; document.getElementById('lobbyContainer').style.display = 'block'; @@ -450,7 +449,6 @@

Timer: 30 seconds

}); function isNickUnique(nick) { - // This function should ideally make an AJAX call to the server to check nickname uniqueness return true; // Placeholder return }