-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
40 lines (40 loc) · 1.78 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Maze Game</title>
<script src = "socket.io.js"></script>
<link rel="stylesheet" media="screen and (min-height: 700px)" href="style.css">
<link rel="stylesheet" media="screen and (max-height: 700px)" href="height.css">
<link rel="stylesheet" media="screen and (max-height: 500px)" href="height2.css">
<link rel="stylesheet" media="screen and (min-width: 915px)" href="style.css">
<link rel="stylesheet" media="screen and (max-width: 915px)" href="height.css">
<link rel="stylesheet" media="screen and (max-width: 760px)" href="height2.css">
</head>
<body>
<div style="display: flex; flex-direction: row;" id = "container">
<div>
<canvas id = "canvas" width="600" ; height="600"></canvas>
<br>
<button onclick='connection.emit("dir", "up")'>Up</button>
<button onclick='connection.emit("dir", "down")'>Down</button>
<button onclick='connection.emit("dir", "left")'>Left</button>
<button onclick='connection.emit("dir", "right")'>Right</button>
<div style = "float: right;">
<input type="text" placeholder="Set your username" id = "input">
<button onclick='connection.emit("name-change", document.getElementById("input").value)'>Set</button>
</div>
</div>
<div>
<div id = "messages">
<h1>Chat Room</h1>
</div>
<input type="text" placeholder="Say something!" id = "text">
</div>
</div>
</body>
<script src = "script.js"></script>
<script src="render.js"></script>
</html>