-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
53 lines (53 loc) · 1.77 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
41
42
43
44
45
46
47
48
49
50
51
52
53
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>chatterbox</title>
<link rel="stylesheet" href="client/styles/styles.css">
<script src="node_modules/jquery/dist/jquery.js"></script>
<script src="node_modules/underscore/underscore.js"></script>
<script>
// DO NOT MODIFY THIS CODE
if (!/(&|\?)username=/.test(window.location.search)) {
let search = window.location.search;
if (!/\?/.test(search)) {
search += '?';
}
if (search[search.length - 1] !== '?') {
search += '&';
}
search += 'username=' + (prompt('What is your name?') || 'anonymous');
window.location.search = search;
}
</script>
</head>
<body>
<div id="main">
<h1>chatterbox</h1>
<div class="spinner"><img src="client/images/spiffygif_46x46.gif"></div>
<div id="rooms">
Room:
<select></select>
<button>Add Room</button>
</div>
<form action="#" id="send" method="post">
<input type="text" name="message" id="message"/>
<input type="submit" name="submit" class="submit"/>
</form>
</div>
<div id="chats"></div>
<script src="client/env/config.js"></script>
<script src="client/scripts/parse.js"></script>
<script src="client/scripts/rooms.js"></script>
<script src="client/scripts/friends.js"></script>
<script src="client/scripts/messages.js"></script>
<script src="client/scripts/formView.js"></script>
<script src="client/scripts/roomsView.js"></script>
<script src="client/scripts/messageView.js"></script>
<script src="client/scripts/messagesView.js"></script>
<script src="client/scripts/app.js"></script>
<script>
$(() => App.initialize());
</script>
</body>
</html>