forked from osPrims/chatApp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
79 lines (79 loc) · 4.65 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ChatApp</title>
<link rel="stylesheet" href="/style.css" />
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" />
<script src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/markdown-it/12.2.0/markdown-it.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
<style>
.wordwrap{
overflow-wrap: break-word;
max-width: 100%;
}
</style>
</head>
<body>
<div>
<div class="container mh-100 d-flex justify-content-center align-items-center">
<div class="row clearfix mh-75 w-100">
<div class="col-lg-12">
<div class="card chat-app h-100 shadow-lg border-0">
<div id="plist" class="people-list d-flex flex-column justify-content-between h-100">
<div>
<div class="rounded-3 py-3 px-2 d-flex justify-content-between flex-column details-bg shadow-sm border-1">
<div>
<img src='/chatApplogo.png' height="50" width="50" alt='chatapp-logo'>
<h2 class="text-custom"> CHAT APP </h2>
<div class="d-flex justify-content-center mt-4 mb-3 w-100">
<p class="text-break"><b><span id="username_holder"></span>, <span id="email_holder" class="text-primary text-decoration-underline"></span></a></b></p>
</div>
</div>
<form class="input-group rounded-pill border-custom bg-white p-1" id="search-messages" action="">
<div class="input-group-prepend">
<button id="button-addon4" type="button" class="btn rounded-pill rounded-end btn-link text-custom shadow-none"><i class="fa fa-search"></i></button>
</div>
<input type="search" placeholder="Search" aria-describedby="button-addon4" class="form-control bg-none border-0 rounded-pill rounded-start shadow-none">
</form>
</div>
<div>
<div class="d-flex mt-3 justify-content-center align-items-center active bg-black bg-opacity-10 p-2 rounded"><span class="stat-circle bg-success me-2"></span>Online</div>
<ul id="online" class="list-unstyled chat-list mt-2 mb-0 overflow-auto">
</ul>
</div>
</div>
<a href="/logout" class="btn-custom text-center d-flex justify-content-center mx-auto px-5 py-2 align-items-center text-decoration-none btn-danger logout shadow-none">LOG OUT</a>
</div>
<div class="chat h-100 d-flex justify-content-between flex-column">
<div class="chat-history" id="main">
<ul id="messages" class="m-b-0">
</ul>
</div>
<div id="feedback" class="d-flex text-custom justify-content-center"></div>
<div class="chat-message clearfix">
<form class="input-group border rounded-3 bg-white p-1" id="form" action="">
<input id="input" placeholder="Type a message" aria-describedby="button-addon4" class="form-control bg-none border-0 outline-none" autocomplete="off">
<div class="input-group-prepend">
<label for = "input_file" class = "file btn btn-info bg-custom border-0" id = "Not_uploaded">
<i class="fa fa-file text-white"></i>
<input id="input_file" type = "file" onchange = "readThensend()" hidden/>
</label>
<button id="button-addon4" type="submit" class="btn btn-link text-custom shadow-none"><i class="fa fa-send"></i></button>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="/socket.io/socket.io.js"></script>
<script src="/client.js"></script>
</body>
</html>