- 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,4 +1,18 @@
let username;
let room_name;
window.addEventListener('beforeunload', function (e) {
// Prevent user from exiting page
e.preventDefault();
});
document.getElementById('ok').addEventListener('click', function () {
username = document.getElementById('username').value;
room_name = document.getElementById('room').value;
document.getElementById('login').style.display = 'none';
document.getElementById('game').style.display = 'flex';
document.getElementById('chat').style.display = 'flex';
start_chat();
resize();
});