-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathchat.html
More file actions
42 lines (38 loc) · 1.41 KB
/
chat.html
File metadata and controls
42 lines (38 loc) · 1.41 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="./style.css">
<title>FireChat</title>
</head>
<body>
<button onclick="fbSignOut()" id="btnSignOut">SignOut</button>
<div>
<h1>Welcome to Chat <span id="currentUser"></span></h1>
<img src="" alt="User Photo" id="user_photo">
<div id="wrapper">
<div id="users_section">
<h3>Users Online</h3>
<div id="online_users">
<img src="" alt="User Photo" id="online_userphoto">
<h5 id="online_user"></h5>
</div>
</div>
<div id="chat_section">
<div id="messages">
</div>
</div>
<div id="message_section">
<input id="message" type="text" placeholder="Type your message ...">
<button id="btnSend" onclick="sendMessage()">Send</button>
</div>
</div>
</div>
</body>
<script src="https://www.gstatic.com/firebasejs/7.21.1/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.21.1/firebase-database.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.21.1/firebase-auth.js"></script>
<script src="./app.js"></script>
<script src="./userInfo.js"></script>
</html>