- Game board
- cards - landing page
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user