-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathroom.html
116 lines (91 loc) · 4.37 KB
/
room.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
<!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">
<!------custom css link------>
<link rel="stylesheet" href="css/style.css">
<!------google icon--------->
<link rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200" />
<!------bootstrap css link--------->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/css/bootstrap.min.css">
<!------bootstrap scrip link--------->
<script defer src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/js/bootstrap.bundle.min.js"></script>
<!------Socket io script link--------->
<script src="/socket.io/socket.io.js"></script>
<title>Chat Room</title>
</head>
<body>
<!------Modal Start------>
<div class="modal fade " id="exampleModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title text-light" id="exampleModalLabel">Create a new public room</h5>
<button type="button" class="btn-close text-bg-warning" data-bs-dismiss="modal"
aria-label="Close"></button>
</div>
<div class="modal-body">
<input type="text" placeholder="Type your room name.." id="create_room" class="form-control">
</div>
<div class="modal-footer">
<button type="button" class="btn btn-danger" data-bs-dismiss="modal">Close</button>
<button type="button" id="create_btn" class="btn btn-success">Create room</button>
</div>
</div>
</div>
</div>
<!------Modal End------>
<!------Name Section Start----->
<div class="name">
<form id="name_form">
<input type="text" placeholder="Your name" />
<input type="submit" value="Join as" class="btn btn-success" />
</form>
</div>
<!------Name Section End------>
<!------Chat Room Section Start---->
<div hidden class="room">
<div class="aside">
<div class="public_rooms">
<h4 class="d-flex justify-content-between align-items-center text-warning">Public Rooms:
<span data-bs-toggle="modal" data-bs-target="#exampleModal"
class="material-symbols-outlined text-success">
add_circle
</span>
</h4>
<div id="public_rooms">
<div class="accordion" id="accordionExample"></div>
</div>
</div>
<div class="online_users">
<h4 class="text-success">Online Users</h4>
<ul class="list-group" id="onlineUserList"></ul>
</div>
</div>
<div class="canvas">
<div class="inner_canvas">
<div class="message_head">
<h5 class="displayName ps-3 pt-3"></h5>
</div>
<div class="message_container d-flex align-items-end">
<ul class="list-group messages w-100 d-flex"></ul>
</div>
<div class="message_form">
<form id="msg_form">
<div class="d-flex">
<input placeholder="Write your message" class="form-control" type="text" />
<input class="form-control" type="hidden" />
<input class="btn btn-success ms-2" type="submit" value="Send" />
</div>
</form>
</div>
</div>
</div>
</div>
<!------Chat Room Section End---->
<script src="js/app.js"></script>
</body>
</html>