-
Notifications
You must be signed in to change notification settings - Fork 0
/
Livechat.html
104 lines (101 loc) · 2.55 KB
/
Livechat.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
<!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>Realtime Chat Application</title>
<script defer src="js/Client.js"></script>
<script defer src="http://localhost:8000/socket.io/socket.io.js"></script>
<style>
body {
background-image: url("https://simpleji-images.s3.ap-south-1.amazonaws.com/image/catalog/DWM/Decorator/White-color-background-with-grey-color-traditional-design-texture-surface-wallpaper-521670-600x600.jpg");
}
.navbar {
display: flex;
justify-content: space-between;
align-items: center;
background-color: #333;
color: #fff;
padding: 10px;
margin-bottom: 10px;
}
.navbar a {
color: #fff;
text-decoration: none;
padding: 10px;
}
.container {
max-width: 955px;
border: 2px solid black;
height: 70vh;
margin: auto;
padding: 33px;
overflow-y: auto;
margin-bottom: 23px;
}
.message {
background-color: bisque;
width: 24%;
padding: 10px;
margin: 17px 12px;
border: 2px solid black;
border-radius: 10px;
}
.right {
float: right;
clear: both;
}
.left {
float: left;
clear: both;
}
#Send-container
{
text-align: center;
max-width: 985px;
display: block;
margin: auto;
}
#messageInp
{
width: 92%;
border: 2px solid black;
border-radius: 6px;
height: 34px;
}
.btn
{
cursor: pointer;
border: 2px solid black;
border-radius: 6px;
height: 2rem;
}
</style>
</head>
<body>
<nav>
<div class="navbar">
<a href="main.html">Home</a>
<a href="#">About</a>
<a href="contact.html">Contact</a>
</div>
</nav>
<div class="container">
<div class="message right">Om : How are you</div>
<div class="message left">pati: I Am Fine</div>
</div>
<div class="send">
<form action="#" id="Send-container">
<input action="#" name="messageInp" id="messageInp">
<button
class="btn"
type="submit
"
>
Send
</button>
</form>
</div>
</body>
</html>