diff --git a/frontend/dashboard/lobby/scripts/Handler/LobbyHandler.js b/frontend/dashboard/lobby/scripts/Handler/LobbyHandler.js
index b7272cf..76d3342 100644
--- a/frontend/dashboard/lobby/scripts/Handler/LobbyHandler.js
+++ b/frontend/dashboard/lobby/scripts/Handler/LobbyHandler.js
@@ -50,39 +50,39 @@ class LobbyHandler {
let playerHTML = "";
this.playerList.forEach((player, index) => {
- const amI = player.id === this.user.id ? " (Ich)" : "";
+ const amI = player.id === this.user.id ? ` Ich` : "";
playerHTML += `
Spieler ${index + 1}${amI}
${player.username}
- `;
-
- lobbyContainer.innerHTML = `
-
-
-
- ${playerHTML}
-
-
- `;
+ `;
});
+
+ lobbyContainer.innerHTML = `
+
+
+
+ ${playerHTML}
+
+
+ `;
const codeText = document.getElementById("code");
- codeText.addEventListener("click", () => {
- codeText.innerText = "Kopiert!"
+ codeText.addEventListener("click", (event) => {
+ event.target.innerText = "Kopiert!"
setTimeout(() => {
codeText.innerText = this.code;
}, 1500);
navigator.clipboard.writeText(this.code);
- })
+ });
this.errorMsg.style.display = "none";
}
diff --git a/frontend/dashboard/lobby/style.css b/frontend/dashboard/lobby/style.css
index 3652f1d..6327a7e 100644
--- a/frontend/dashboard/lobby/style.css
+++ b/frontend/dashboard/lobby/style.css
@@ -26,7 +26,7 @@ button {
align-items: center;
height: 20%;
- background-color: rgba(255, 255, 255, 0.377);
+ background-color: rgb(124, 124, 124);
border-radius: 10px 10px 0 0;
}
@@ -56,12 +56,12 @@ button {
}
#player1{
- background-color: rgba(255, 8, 0, 0.377);
+ background-color: rgb(187, 6, 0, 0.6);
border-radius: 0 0 0 0;
}
#player2{
- background-color: rgba(0, 89, 255, 0.377);
+ background-color: rgba(0, 52, 150, 0.6);
border-radius: 0 0 10px 10px;
}