Skip to content

Commit

Permalink
Fixed username length
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelmv30 committed May 1, 2024
1 parent d1e00cb commit f59db70
Showing 1 changed file with 7 additions and 18 deletions.
25 changes: 7 additions & 18 deletions html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,11 @@ <h2>List of valid Words</h2>
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";
Expand Down Expand Up @@ -523,22 +527,7 @@ <h2>List of valid Words</h2>
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)
{

Expand Down Expand Up @@ -599,7 +588,7 @@ <h2>List of valid Words</h2>
username = document.getElementById("username").value;
if (username.trim() !== "")
{


if (sent_status === 0)
{
Expand Down Expand Up @@ -652,7 +641,7 @@ <h2>List of valid Words</h2>

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

}
Expand Down

0 comments on commit f59db70

Please sign in to comment.