-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfirebase_chat.html
210 lines (208 loc) · 7.87 KB
/
firebase_chat.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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<!-- https://github.com/MohamedBrary/firebase-sample-chat -->
<title>
Firebase Sample Chat
</title>
<meta content="width=device-width, initial-scale=1" name="viewport"/>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet"/>
<script src="https://code.jquery.com/jquery-1.11.1.min.js">
</script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js">
</script>
<script src="https://cdn.jsdelivr.net/jquery.loadingoverlay/latest/loadingoverlay.min.js">
</script>
<link href="firebase_chat.css" rel="stylesheet"/>
<link href="https://www.fusionaryhub.com/favicon.ico" rel="shortcut icon" type="image/png"/>
<link href="favicon.ico" rel="shortcut icon" type="image/png"/>
</head>
<body>
<script src="https://use.fontawesome.com/45e03a14ce.js">
</script>
<div class="main_section">
<div class="container">
<div class="app-header">
<div class="lead">
Chat between Designer and Developer of this sample app.
</div>
<div class="pull-rights">
<button class="dev-switch-button btn btn-default disabled">
<img alt="Developer Avatar" class="img-circle" src="https://scontent-cai1-1.xx.fbcdn.net/v/t1.0-1/c22.0.48.48/p48x48/13615419_10153592621422793_8368169177989329233_n.jpg?oh=f5ef37717a144053fcdf7e6fbd42ff02&oe=59E439CE"/>
Chat as Developer
</button>
<button class="dev-switch-button btn btn-default">
<img alt="Designer Avatar" class="img-circle" src="https://lh6.googleusercontent.com/-y-MY2satK-E/AAAAAAAAAAI/AAAAAAAAAJU/ER_hFddBheQ/photo.jpg"/>
Chat as Designer
</button>
</div>
</div>
<div class="chat_container">
<!--conversations chat_sidebar-->
<div class="col-sm-3 chat_sidebar">
<div class="row">
<div id="custom-search-input">
<div class="input-group col-md-12">
<input class=" search-query form-control" placeholder="Conversation" type="text"/>
<button class="btn btn-danger" type="button">
<span class=" glyphicon glyphicon-search">
</span>
</button>
</div>
</div>
<div class="dropdown all_conversation">
<button aria-expanded="false" aria-haspopup="true" class="dropdown-toggle" data-toggle="dropdown" id="dropdownMenu2" type="button">
<i aria-hidden="true" class="fa fa-weixin">
</i>
All Conversations
<span class="caret pull-right">
</span>
</button>
<ul aria-labelledby="dropdownMenu2" class="dropdown-menu">
<li>
<a href="#">
All Conversation
</a>
<ul class="sub_menu_ list-unstyled">
<li>
<a href="#">
All Conversation
</a>
</li>
<li>
<a href="#">
Another action
</a>
</li>
<li>
<a href="#">
Something else here
</a>
</li>
<li>
<a href="#">
Separated link
</a>
</li>
</ul>
</li>
<li>
<a href="#">
Another action
</a>
</li>
<li>
<a href="#">
Something else here
</a>
</li>
<li>
<a href="#">
Separated link
</a>
</li>
</ul>
</div>
<div id="conversation_container" class="member_list">
<ul id="conversation_list" class="list-unstyled">
</ul>
</div>
</div>
</div>
<!--conversations chat_sidebar-->
<!--chat-->
<div id="chat_column" class="col-sm-6 message_section">
<div class="row">
<div class="new_message_head">
<div class="pull-left">
<span class="hide" id='username'>
Developer
</span>
<p id='othername'>
Designer
</p>
</div>
<div class="pull-right">
<div class="dropdown">
<button aria-expanded="false" aria-haspopup="true" class="dropdown-toggle" data-toggle="dropdown" id="dropdownMenu1" type="button">
<i aria-hidden="true" class="fa fa-cogs">
</i>
Setting
<span class="caret">
</span>
</button>
<ul aria-labelledby="dropdownMenu1" class="dropdown-menu dropdown-menu-right">
<li>
<a href="#">
Action
</a>
</li>
<li>
<a href="#">
Profile
</a>
</li>
<li>
<a href="#">
Logout
</a>
</li>
</ul>
</div>
</div>
</div>
<!--new_message_head-->
<div class="chat_area">
<ul id="chat_items_list" class="list-unstyled">
</ul>
</div>
<!--chat_area-->
<div class="message_write">
<textarea id="chat_text" class="form-control" placeholder="type a message"></textarea>
<div class="clearfix">
</div>
<div class="chat_bottom">
<input id="file_input" class="hide" type="file"/>
<a id="file_anchor" class="pull-left upload_btn" href="">
<i aria-hidden="true" class="fa fa-cloud-upload">
</i>
Upload File
</a>
<a id="post_button" class="pull-right btn btn-success" href="">
Send
</a>
</div>
</div>
</div>
</div>
<!--end of message_section-->
<!--end of chat-->
<!--attachments-->
<div class="col-sm-3 chat_sidebar attachment_list">
<div class="row">
<div class="dropdown all_conversation">
<button >
<i aria-hidden="true" class="fa fa-file">
</i>
Chat Attachments
</button>
</div>
<div id="attachment_area" class="member_list">
<ul id="attachment_items_list" class="list-unstyled">
</ul>
</div>
</div>
</div>
<!--end of attachments-->
</div>
</div>
</div>
<script src="https://www.gstatic.com/firebasejs/4.1.1/firebase.js">
</script>
<script src="firebase_wrapper.js">
</script>
<script src="firebase_chat.js">
</script>
</body>
</html>