-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
55 lines (45 loc) · 1.46 KB
/
Copy pathindex.html
File metadata and controls
55 lines (45 loc) · 1.46 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<!doctype html>
<html>
<head>
<title>The Cool Socket.IO chat</title>
<link href="assets/css/chat.css" rel="stylesheet" />
</head>
<body>
<a href="https://github.com/NathanCJohnson/NodeJS-Chat" target="_blank">
<img src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" id="github" alt="Fork me on GitHub">
</a>
<div id="main">
<header>
<h1>The Chat Room</h1>
<p id="nickname">
Nickname: <b></b>
</p>
<div class="clear"></div>
</header>
<div id="set-nickname">
<h2>Welcome! Enter a Nickname</h2>
<form>
<input type="text" autocomplete="off" required autofocus placeholder="Nickname" />
<br />
<br />
<button>Join Chat</button>
</form>
</div>
<div id="chat">
<ul id="messages"></ul>
<form action="">
<div id="typing"></div>
<input autocomplete="off" placeholder="Type a message..." /><button type="submit">Send</button>
</form>
</div>
<div id="online">
<h2>Who's here?</h2>
<ul></ul>
</div>
</div>
<footer><b>Made by Nathan Johnson.</b> <br>This chat uses Node.js and Socket.io</footer>
<script src="/socket.io/socket.io.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="assets/js/chat-frontend.js"></script>
</body>
</html>