From f59db7020e56329e4b8acb2e0446e690e65e2b68 Mon Sep 17 00:00:00 2001 From: Samuel Mathew Vennalil Date: Wed, 1 May 2024 18:20:17 -0500 Subject: [PATCH] Fixed username length --- html/index.html | 25 +++++++------------------ 1 file changed, 7 insertions(+), 18 deletions(-) diff --git a/html/index.html b/html/index.html index 6f9327c..fae1133 100644 --- a/html/index.html +++ b/html/index.html @@ -494,7 +494,11 @@

List of valid Words

button1.id = "OKAY"; button1.addEventListener('click', okay); summaryDiv.appendChild(button1); - + + button1.style.display = "block"; + button1.style.marginTop = "20px"; + button1.style.fontSize = "20px"; + summaryDiv.style.display = "block"; summaryDiv.style.position = "absolute"; summaryDiv.style.zIndex = "999"; @@ -523,22 +527,7 @@

List of valid Words

LeaderBoardTable1.innerHTML = ""; LeaderBoardTable2.innerHTML = ""; - /*for (var key in sent_LB.LB) - { - var row1 = LeaderBoardTable1.insertRow(); - var row2 = LeaderBoardTable2.insertRow(); - var cell11 = row1.insertCell(0); - var cell12 = row2.insertCell(0); - var cell21 = row1.insertCell(1); - var cell22 = row2.insertCell(1); - - cell11.textContent = key; - cell12.textContent = key; - cell21.textContent = sent_LB.LB[key]; - cell22.textContent = sent_LB.LB[key]; - - }*/ for (var key in sent_LB.names) { @@ -599,7 +588,7 @@

List of valid Words

username = document.getElementById("username").value; if (username.trim() !== "") { - + if (sent_status === 0) { @@ -652,7 +641,7 @@

List of valid Words

else { - alert("Please enter a username before joining."); + alert("Please enter a username which is max 10 characters long before joining."); } }