From 14507cca7df3aaa41c8811326a158bb42c01b3d5 Mon Sep 17 00:00:00 2001 From: Jonas Date: Tue, 18 Mar 2025 12:53:18 +0100 Subject: [PATCH] =?UTF-8?q?Ein=20paar=20=C3=A4nderungen=20beim=20joinen=20?= =?UTF-8?q?screen.=20Sowie=20die=20die=20M=C3=B6glichkeit=20den=20Code=20z?= =?UTF-8?q?u=20kopieren?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/dashboard/lobby/index.html | 2 +- .../lobby/scripts/Handler/LobbyHandler.js | 20 +++++++-- frontend/dashboard/lobby/scripts/index.js | 44 +++++++++++++++---- frontend/dashboard/lobby/style.css | 11 ++++- 4 files changed, 62 insertions(+), 15 deletions(-) diff --git a/frontend/dashboard/lobby/index.html b/frontend/dashboard/lobby/index.html index ee60126..f1dbc80 100644 --- a/frontend/dashboard/lobby/index.html +++ b/frontend/dashboard/lobby/index.html @@ -30,7 +30,7 @@ Code Erstellen - + + ` + + document.getElementById("joinBtn").addEventListener("click", () => { + const code = document.getElementById("codeInp").value; + this.lobbyHandler.handleJoinClick(code); + }) + }) + this.leaveBtn.addEventListener("click", () => { this.socket.disconnect(); window.location.pathname = "/dashboard"; diff --git a/frontend/dashboard/lobby/style.css b/frontend/dashboard/lobby/style.css index f71b1fe..3652f1d 100644 --- a/frontend/dashboard/lobby/style.css +++ b/frontend/dashboard/lobby/style.css @@ -2,7 +2,7 @@ button { width: 350px; } -#joinBtn{ +#joinOverlayBtn{ background-color: rgb(0, 119, 255); } @@ -63,4 +63,13 @@ button { #player2{ background-color: rgba(0, 89, 255, 0.377); border-radius: 0 0 10px 10px; +} + +.formSection h2{ + text-align: center; + +} + +#codeInp{ + text-align: center; } \ No newline at end of file