Some small fixes
This commit is contained in:
@@ -8,7 +8,9 @@
|
||||
|
||||
<link href="css/components.css" rel="stylesheet">
|
||||
<link href="css/header.css" rel="stylesheet">
|
||||
|
||||
<link href="css/chat.css" rel="stylesheet">
|
||||
<link href="css/game.css" rel="stylesheet">
|
||||
|
||||
<link href="css/index.css" rel="stylesheet">
|
||||
</head>
|
||||
@@ -34,11 +36,10 @@
|
||||
|
||||
</footer>
|
||||
|
||||
<script crossorigin="anonymous"
|
||||
integrity="sha384-cPwlPLvBTa3sKAgddT6krw0cJat7egBga3DJepJyrLl4Q9/5WLra3rrnMcyTyOnh"
|
||||
src="https://cdn.socket.io/3.1.3/socket.io.min.js"></script>
|
||||
<script src="js/chat.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/4.0.1/socket.io.js" integrity="sha512-q/dWJ3kcmjBLU4Qc47E4A9kTB4m3wuTY7vkFJDTZKjTs8jhyGQnaUrxa0Ytd0ssMZhbNua9hE+E7Qv1j+DyZwA==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pixi.js/5.1.3/pixi.min.js"></script>
|
||||
<script src="js/chat.js"></script>
|
||||
<script src="js/game.js"></script>
|
||||
<script src="js/index.js"></script>
|
||||
</body>
|
||||
</html>
|
@@ -1,12 +1,12 @@
|
||||
let socket;
|
||||
let username = prompt("Please enter your name");
|
||||
//let room_name = prompt("Please enter room name", "1234");
|
||||
let room_name = prompt("Please enter room name");
|
||||
let connected = false;
|
||||
|
||||
window.addEventListener('load', function () {
|
||||
socket = io();
|
||||
|
||||
socket.on('login', function (data) {
|
||||
socket.on('login', function () {
|
||||
connected = true;
|
||||
addLogMessage("Welcome " + username + "!");
|
||||
});
|
||||
|
Reference in New Issue
Block a user