-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
111 lines (108 loc) · 4.58 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<!-- This file has been downloaded from bootdey.com @bootdey on twitter -->
<!-- All snippets are MIT license http://bootdey.com/license -->
<title>Chat Room</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="http://netdna.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="ui/css/chatbox.css">
<link rel="shortcut icon" type="image/png" href="ui/imgs/favicon.png"/>
</head>
<body>
<center>
<br>
<div>
<input type ="text" id ="loginInput" placeholder="username" />
<button id = "loginBtn">Login</button>
</div>
<br>
<div>
<input type ="text" placeholder="friend's name" id = "otherUsernameInput" />
<button id = "connectToOtherUsernameBtn">Chat</button>
</div>
</center>
<br>
<div class="container bootstrap snippet">
<div class="row">
<div class="col-md-4 col-md-offset-4">
<div class="portlet portlet-default">
<div class="portlet-heading">
<div class="portlet-title">
<h4><i class="fa fa-circle text-green"></i> Chat Room </h4>
</div>
<div class="portlet-widgets">
<span class="divider"></span>
<a data-toggle="collapse" data-parent="#accordion" href="#chat"><i class="fa fa-chevron-down"></i></a>
</div>
<div class="clearfix"></div>
</div>
<div id="chat" class="panel-collapse collapse in">
<div>
<div class="portlet-body chat-widget" style="overflow-y: auto; width: auto; height: 300px;">
<div class="row">
<div class="col-lg-12">
<div class="media">
<div id="chatbox" class="media-body">
</div>
</div>
</div>
</div>
</div>
</div>
<div class="portlet-footer">
<form role="form">
<div class="form-group">
<textarea class="form-control" placeholder="Enter message..." id="msgInput"></textarea>
</div>
<div class="form-group">
<button type="button" class="btn btn-default pull-right" id="sendMsgBtn">Send</button>
<div class="clearfix"></div>
</div>
</form>
</div>
</div>
</div>
</div>
<!-- /.col-md-4 -->
</div>
</div>
<div class="container bootstrap snippet">
<div class="row">
<div class="col-md-4 col-md-offset-4">
<div class="portlet portlet-default">
<div class="portlet-heading">
<div class="portlet-title">
<h4><i class="fa fa-circle text-green"></i> Connected Users </h4>
</div>
<div class="portlet-widgets">
<span class="divider"></span>
<a data-toggle="collapse" data-parent="#accordion" href="#chat"><i class="fa fa-chevron-down"></i></a>
</div>
<div class="clearfix"></div>
</div>
<div id="chat" class="panel-collapse collapse in">
<div>
<div class="portlet-body chat-widget" style="overflow-y: auto; width: auto; height: 300px;">
<div class="row">
<div class="col-lg-12">
<div class="media">
<div id="userbox" class="media-body">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- /.col-md-4 -->
</div>
</div>
<script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
<script src="http://netdna.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js"></script>
<script src = "client.js"></script>
</body>
</html>