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