-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
121 lines (79 loc) · 2.96 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<title>ChatLingual Demo</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<link href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/css/bootstrap-combined.min.css" rel="stylesheet">
<script src="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/socket.io/socket.io.js"></script>
<script type="text/javascript" src="/upload.js"></script>
<script type="text/javascript" src="/client.js"></script>
<link href='http://fonts.googleapis.com/css?family=Open+Sans+Condensed:700|Open+Sans' rel='stylesheet' type='text/css'>
<style type="text/css">
h1, h2, h3, h4
{
font-family: 'Open Sans Condensed', sans-serif;
font-weight: bold;
}
body
{
font-family: 'Open Sans', sans-serif;
}
#chat-log
{
height: 300px;
background-color: #eee;
padding: 10px;
overflow-y: scroll;
word-wrap: break-word;
}
#chat-log li
{
margin-bottom: .3em;
}
</style>
</head>
<body>
<div class="modal hide fade in" data-backdrop="static" data-keyboard="false">
<div class="modal-header">
<h3>Hi, What's your name?</h3>
</div>
<div class="modal-body">
<input type="text" id="name" placeholder="Your name" />
</div>
<div class="modal-footer">
<button id="connect" class="btn btn-primary" data-dismiss="modal" aria-hidden="true">Let's Chat!</button>
</div>
</div>
<div class="container">
<div class="row">
<div class="span6 offset3">
<h1>ChatLingual Demo</h1>
</div>
</div>
<div class="row">
<div class="span2 offset3 hidden-phone">
<h4 class="muted">Users</h4>
<ul id="users" class="unstyled muted"></ul>
</div>
<div class="span4">
<ul id="chat-log" class="unstyled">
</ul>
</div>
</div>
<div class="row">
<div class="span4 offset5">
<textarea id="msg" class="span4" rows="3" cols="20" placeholder="Say something..."></textarea>
<legend class="express-upload-progress"></legend>
<form action="/attach" method="post" enctype="multipart/form-data">
<i class="icon-file"></i>
<input type="file" name="attachment" id="attachment" />
<input type="submit" class="btn" value="Upload" />
</form>
</div>
</div>
</div>
</body>
</html>