-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
94 lines (78 loc) · 2.28 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Y Chat Using Node Js SocketIo(Real Time Chat App)</title>
<script src = "client.js" type = "text/javascript"></script>
<style>
#logo {
display: block;
margin: auto;
height: 100px;
width :100px;
}
body {
background-image: linear-gradient(rgb(255,255,255),rgb(109,39,239));
height: 100vh;
}
.container {
max-width: 955px;
height: 1000px;
background-color: lightcyan;
margin: auto;
transform: translateY(20px);
height: 70vh;
overflow-y: auto;
}
.message {
background-color: lightblue;
width :24%;
padding: 10px;
margin-top: 17px;
border: 2px solid black;
border-radius: 30px;
}
.left {
float: left;
clear: both;
}
.right {
float: right;
clear :both;
}
#sendcontainer {
transform: translate(500px,49px);
}
#messageInp {
transform: translateX(-310px);
width: 945px;
border: 2px solid black;
border-radius: 20px;
height: 25px;
}
#send {
transform: translate(-800px,50px) ;
cursor: pointer;
}
</style>
<script defer src = "http://localhost:8000/socket.io/socket.io.js" ></script>
<script defer src = "js/client.js" type = "text/javascript"> </script>
</head>
<body>
<nav>
<img src = "images/chat.png" id = "logo" />
</nav>
<h4 id = "name" style = "text-align: center;"> </h4>
<div class="container">
<!-- <div class = "message left"> Harry How Are You</div>
<div class = "message right"> I Am Fine Tell About Yours</div> -->
</div>
<div class = "send">
<form action = "#" id = "sendcontainer">
<input type = "text" name = "message" id = "messageInp">
<input type = "submit" name = "submit" value = "Send" id = "send" >
</form>
</div>
</body>
</html>