-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
37 lines (33 loc) · 906 Bytes
/
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
<!DOCTYPE html>
<html>
<head>
<meta charset = "UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel = "stylesheet" type="text/css" href="assets/css/style.css">
</head>
<body>
<script>
</script>
<canvas id="drawboard" width="200" height="100">
</canvas>
<div id = "chat">
<ul id = "messages">
</ul>
<form onsubmit = "return sendMessage()" action = "">
<div id = "inputField">
<input id = "inputTextBox" autocomplete="off" autofocus/>
<button> <b>Send</b> </button>
</div>
</form>
</div>
<script src="/socket.io/socket.io.js"></script>
<script> var socket = io(); </script>
<script src = "assets/scripts/chat.js"></script>
<script>
socket.on("chat_message", function(message) {
appendMessage(message);
});
</script>
<script src = "assets/scripts/drawboard.js"></script>
</body>
</html>