-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathchat.html
386 lines (311 loc) · 17.8 KB
/
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
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<title>Knowit</title>
<!-- Custom fonts for this template-->
<link href="vendor/fontawesome-free/css/all.min.css" rel="stylesheet" type="text/css">
<link href="https://fonts.googleapis.com/css?family=Nunito:200,200i,300,300i,400,400i,600,600i,700,700i,800,800i,900,900i" rel="stylesheet">
<!-- Custom styles for this template-->
<link href="css/knowit.css" rel="stylesheet">
<link href="css/perso.css" rel="stylesheet">
</head>
<body id="page-top">
<!-- Page Wrapper -->
<div id="wrapper">
<!-- Sidebar -->
<ul class="navbar-nav bg-gradient-primary sidebar sidebar-dark accordion" id="accordionSidebar">
<!-- Sidebar - Brand -->
<object data="img/knowit-logo.svg" type="image/svg+xml">
<img src="img/knowit-logo.svg"/>
</object>
<!-- Divider -->
<hr class="sidebar-divider my-0">
<!-- Nav Item - Dashboard -->
<li class="nav-item">
<a class="smooth nav-link" href="index.html">
<i class="smooth fas fa-chalkboard"></i>
<span>Fil d'actualité</span></a>
</li>
<!-- Divider -->
<hr class="sidebar-divider my-0">
<!-- Nav Item - Dashboard -->
<li class="nav-item">
<a class="smooth nav-link" href="knowledges.html">
<i class="smooth fas fa-book-open"></i>
<span>Mes knowledges</span>
</a>
</li>
<!-- Nav Item - Dashboard -->
<li class="nav-item">
<a class="smooth nav-link" href="requests.html">
<i class="smooth fas fa-praying-hands"></i>
<span>Mes requests</span>
</a>
</li>
<!-- Nav Item - Dashboard -->
<li class="nav-item">
<a class="smooth nav-link" href="postulations.html">
<i class="smooth fas fa-plus-square"></i>
<span>Mes postulations</span>
</a>
</li>
<!-- Nav Item - Dashboard -->
<li class="nav-item">
<a class="smooth nav-link" href="sessions.html">
<i class="smooth fas fa-hands-helping"></i>
<span>Mes sessions</span>
</a>
</li>
<!-- Divider -->
<hr class="sidebar-divider">
<!-- Sidebar Toggler (Sidebar) -->
<div class="text-center d-md-inline">
<button onclick="window.location = 'createpost.html';" class="btn rounded-circle border-0 sidebar-rounded" id="newBtn">
<i class="fas mt-1 fa-plus"></i>
</button>
</div>
<!-- Sidebar Toggler (Sidebar) -->
<div class="d-none d-md-inline mt-5">
<button class="btn btn-sideToogle border-0 float-right" id="sidebarToggle"></button>
</div>
</ul>
<!-- End of Sidebar -->
<!-- Content Wrapper -->
<div id="content-wrapper" class="d-flex flex-column">
<!-- Main Content -->
<div id="content">
<!-- Topbar -->
<nav class="navbar navbar-expand navbar-light bg-white topbar mb-4 static-top shadow">
<!-- Sidebar Toggle (Topbar) -->
<button id="sidebarToggleTop" class="btn btn-link d-md-none rounded-circle">
<i class="fa fa-bars"></i>
</button>
<!-- Topbar Search -->
<form class="d-none d-sm-inline-block form-inline mr-auto ml-md-3 my-2 my-md-0 mw-100">
<div class="input-group">
<input id="inputSearch1" type="text" class="form-control bg-light border-0 small" placeholder="Rechercher..." aria-label="Search" aria-describedby="basic-addon2">
<div class="input-group-append">
<button id="btnSearch1" class="btn btn-primary" type="button">
<i class="fas fa-search fa-sm"></i>
</button>
</div>
</div>
</form>
<!-- Topbar Navbar -->
<ul class="navbar-nav ml-auto">
<!-- Nav Item - Search Dropdown (Visible Only XS) -->
<li class="nav-item dropdown no-arrow d-sm-none">
<a class="nav-link dropdown-toggle" href="#" id="searchDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<i class="fas fa-search fa-fw"></i>
</a>
<!-- Dropdown - Messages -->
<div class="dropdown-menu dropdown-menu-right p-3 shadow animated--grow-in" aria-labelledby="searchDropdown">
<form class="form-inline mr-auto w-100">
<div class="input-group">
<input id="inputSearch2" type="text" class="form-control bg-light border-0 small" placeholder="Rechercher..." aria-label="Search" aria-describedby="basic-addon2">
<div class="input-group-append">
<button id="btnSearch2" class="btn btn-primary" type="button">
<i class="fas fa-search fa-sm"></i>
</button>
</div>
</div>
</form>
</div>
</li>
<!-- Nav Item - Alerts -->
<li class="nav-item dropdown no-arrow mx-1">
<a id="notifBtn" class="nav-link dropdown-toggle" href="#" id="alertsDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<i class="fas fa-bell fa-fw"></i>
<!-- Counter - Alerts -->
<span id="notificationCounter" class="badge badge-danger badge-counter"></span>
</a>
<!-- Dropdown - Alerts -->
<div class="dropdown-list dropdown-menu dropdown-menu-right shadow animated--grow-in" aria-labelledby="alertsDropdown">
<h6 class="dropdown-header">
Notifications
</h6>
<div id="notifications">
</div>
</div>
</li>
<!-- Nav Item - Messages -->
<li class="nav-item dropdown no-arrow mx-1">
<a class="nav-link dropdown-toggle" href="#" id="messagesDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<i class="fas fa-envelope fa-fw"></i>
<!-- Counter - Messages -->
<span id="messagesCounter" class="badge badge-danger badge-counter"></span>
</a>
<!-- Dropdown - Messages -->
<div class="dropdown-list dropdown-menu dropdown-menu-right shadow animated--grow-in" aria-labelledby="messagesDropdown">
<h6 class="dropdown-header">
Messages
</h6>
<div id="messagesNav">
</div>
</div>
</li>
<div class="topbar-divider d-none d-sm-block"></div>
<!-- Nav Item - User Information -->
<li class="nav-item dropdown no-arrow">
<a class="nav-link dropdown-toggle" href="#" id="userDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span id="profilPseudo" class="mr-2 d-none d-lg-inline text-gray-600 small"></span>
<img id="profilImage" class="img-profile rounded-circle">
</a>
<!-- Dropdown - User Information -->
<div class="dropdown-menu dropdown-menu-right shadow animated--grow-in" aria-labelledby="userDropdown">
<a class="dropdown-item" href="profil.html">
<i class="fas fa-user fa-sm fa-fw mr-2 text-gray-400"></i>
Profile
</a>
<a class="dropdown-item" href="editProfil.html">
<i class="fas fa-cogs fa-sm fa-fw mr-2 text-gray-400"></i>
Paramètres
</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="#" data-toggle="modal" data-target="#logoutModal">
<i class="fas fa-sign-out-alt fa-sm fa-fw mr-2 text-gray-400"></i>
Déconnexion
</a>
</div>
</li>
</ul>
</nav>
<!-- End of Topbar -->
<!-- /.BEGIN PAGE CONTENT
***
***
***
***
***
/.BEGIN PAGE CONTENT -->
<div class="container-fluid">
</div>
<!-- /.END PAGE CONTENT
***
***
***
***
***
/.END PAGE CONTENT-->
<!-- Begin Chat Part -->
<div class="fixed-btn scale-up-center">
<a href="javascript:void(0)" id="btnChat" style="width: 3.2rem; height: 3.2rem;" class="btn rounded-circle btn-primary bg-primary border-0 text-white mx-1" id="chatBtn"><i style="margin-top: 9px; font-size: 20px;" class="fas fa-comments"></i></a>
</div>
<div id="chat" class="bg-primary shadow chat-size scale-up-center d-none">
<div class="container-fluid m-0 p-0">
<div class="row no-gutters">
<div class="col-12 my-2 d-flex align-items-center justify-content-between">
<span style="margin-left:30px;" class="text-white font-weight-bold"> Messages</span>
<button id="closeChat" style="margin-right:30px;" type="button" class="chat-close text-white btn close-hover" aria-label="Close"><span aria-hidden="true">×</span></button>
</div>
<div class="chat-col-name bg-white">
<ul id="chatNetwork" class="list-group chat-responsive-li">
</ul>
</div>
<div class="bg-white chat-col-message">
<div class="messages" id="chatMessages">
</div>
<div style="border-top: 3px solid rgba(0, 0, 0, 0.125);">
<div class="input-group">
<input id="chatInput" type="text" class="form-control bg-light border-0 small" placeholder="Entrez un message ...">
<div class="input-group-append">
<button id="chatSend" class="btn btn-primary">
<i class="fas fa-paper-plane"></i>
</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- End Chat Part -->
</div>
<!-- End of Main Content -->
<!-- Footer -->
<footer class="mt-3 sticky-footer bg-white">
<div class="container my-auto">
<div class="copyright text-center my-auto">
<span>Copyright © Knowit 2019</span>
</div>
</div>
</footer>
<!-- End of Footer -->
</div>
<!-- End of Content Wrapper -->
</div>
<!-- End of Page Wrapper -->
<!-- Scroll to Top Button-->
<a class="scroll-to-top rounded" href="#page-top">
<i class="fas fa-angle-up"></i>
</a>
<!-- Logout Modal-->
<div class="modal fade" id="logoutModal" tabindex="-1" role="dialog" aria-labelledby="logoutModalTitle" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content" style="border: none;">
<div class="modal-header bg-danger text-white">
<h5 class="modal-title" id="logoutModalTitle">Prêt à déconnecter ?</h5>
<button class="close text-white" type="button" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div class="text-center py-2">
<i style="font-size: 5rem" class="fas fa-sign-out-alt text-danger"></i>
</div>
<div class="text-center">
Selectionner <b>"Déconnexion"</b> ci-dessous si vous êtes prêt à <b>mettre fin</b> à la session actuelle.
</div>
</div>
<div class="modal-footer">
<button class="btn btn-outline-secondary" type="button" data-dismiss="modal">Annuler</button>
<a id="disconnectBtn" class="btn btn-danger" href="javascript:void(0)">Déconnexion</a>
</div>
</div>
</div>
</div>
<div class="modal fade" id="declineModal"tabindex="-1" role="dialog" aria-labelledby="declineModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content" style="border: none;" >
<div class="modal-header bg-danger text-white">
<h5 class="modal-title" id="declineModalLabel">Refuser la candidature</h5>
<button class="close text-white" type="button" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div class="text-center py-2">
<i style="font-size: 5rem" class="fas fa-times text-danger"></i>
</div>
<div class="text-center">
Êtes-vous certain de vouloir décliner cette candidature ?
</div>
</div>
<div class="modal-footer">
<button class="btn btn-outline-secondary" type="button" data-dismiss="modal">Annuler</button>
<a class="btn btn-danger" href="javascript:void(0)" id="declineConfirm">Décliner</a>
</div>
</div>
</div>
</div>
<!-- Bootstrap core JavaScript-->
<script src="vendor/jquery/jquery.min.js"></script>
<script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- Core plugin JavaScript-->
<script src="vendor/jquery-easing/jquery.easing.min.js"></script>
<!-- Vendor scripts for all pages-->
<script src="js/vendor/sb-admin-2.min.js"></script>
<!-- Perso scripts for all pages-->
<script src="js/user.js"></script>
<script src="js/chat.js"></script>
<script src="js/deconnexion.js"></script>
<script src="js/notification.js"></script>
<script src="js/search.js"></script>
<!-- Perso scripts for this page-->
</body>
</html>