-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
92 lines (90 loc) · 3.59 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Chat Application</title>
<link rel="stylesheet" href="styles.css" />
<script src="/socket.io/socket.io.js"></script>
<script defer src="script.js"></script>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css"
/>
</head>
<body>
<div class="chat-container">
<div class="user-list">
<h3>Users</h3>
<ul id="users">
<!-- Dynamically populated user list -->
</ul>
<div class="social-links-container">
<h3>Connect With Me</h3>
<ul class="social-links">
<li>
<a href="https://ammaaralam.com" target="_blank">
<i class="fas fa-laptop-code"></i> Coding Portfolio / Personal Site
</a>
</li>
<li>
<a href="https://github.com/Ammaar-Alam/java-chatapp" target="_blank">
<i class="fab fa-github"></i> GitHub
</a>
</li>
<li>
<a href="https://www.linkedin.com/in/Ammaar-Alam" target="_blank">
<i class="fab fa-linkedin"></i> LinkedIn
</a>
</li>
<li>
<a href="https://ammaar.xyz" target="_blank">
<i class="fas fa-camera"></i> Photography Portfolio
</a>
</li>
</ul>
</div>
</div>
<div class="chat-box">
<div class="chat-header">Alam's Web Chat</div>
<ul id="messages" class="messages">
<!-- Dynamically populated chat messages -->
</ul>
<form id="form" class="input-area">
<input id="input" autocomplete="off" placeholder="Type your message here..." />
<button type="submit">Send</button>
</form>
</div>
<div class="room-list">
<h3>Rooms</h3>
<ul id="rooms">
<!-- Dynamically populated room list -->
</ul>
</div>
</div>
<form id="loginForm" class="username-form">
<input
type="text"
id="usernameInput"
autocomplete="off"
placeholder="Enter your username"
/>
<input type="text" id="roomInput" autocomplete="off" placeholder="Enter room name" />
<input
type="password"
id="passwordInput"
autocomplete="off"
placeholder="Enter room password (optional)"
/>
<button type="submit">Join Chat</button>
</form>
<!-- Password prompt modal -->
<div id="passwordModal" class="modal">
<div class="modal-content">
<span id="closeModal" class="close">×</span>
<p>Enter the password for the room:</p>
<input type="password" id="modalPasswordInput" placeholder="Room password" />
<button id="modalSubmit">Submit</button>
</div>
</div>
</body>
</html>