- Game board

- cards
- landing page
This commit is contained in:
2021-06-08 15:38:43 +02:00
parent 5597680526
commit 2c7556cbe7
12 changed files with 404 additions and 13 deletions

View File

@@ -1,9 +1,7 @@
let socket;
let username = prompt("Please enter your name");
let room_name = prompt("Please enter room name");
let connected = false;
window.addEventListener('load', function () {
function start_chat() {
socket = io();
socket.on('login', function () {
@@ -25,7 +23,7 @@ window.addEventListener('load', function () {
// Login
socket.emit('add user', {'username': username, 'room_name': room_name});
});
}
function sendMessage() {
let message = document.getElementById('message_input').value;