-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathchat.html
More file actions
57 lines (46 loc) · 1.46 KB
/
chat.html
File metadata and controls
57 lines (46 loc) · 1.46 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<!DOCTYPE html>
<html>
<head>
<title>Snappy</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css" />
<link href="https://fonts.googleapis.com/css?family=Roboto+Slab" rel="stylesheet">
<link rel="stylesheet" href="style.css" />
</head>
<body>
<div class="member-area">
<div class="user-info" >
<span id="username"> </span>
<span class="logout">Log out</spna>
</div>
<div class="members" id="members">
</div>
</div>
<div class="message-area">
<div class="chat-info">
Rahul
</div>
<div class="messages" id="messages">
</div>
<div class="chat-form">
<input type="hidden" id="chat-id" />
<input type="text" class="chat-message" placeholder="Write your message and press enter ... " id="message-text"/>
<button id="send-button"> send </button>
</div>
</div>
<script src="https://www.gstatic.com/firebasejs/3.6.7/firebase.js"></script>
<script>
// Initialize Firebase
var config = {
apiKey: "AIzaSyDhewOC32ZijfeJXdpsVZTQEuCa8wy7jyM",
authDomain: "snappychat-31a05.firebaseapp.com",
databaseURL: "https://snappychat-31a05.firebaseio.com",
storageBucket: "snappychat-31a05.appspot.com",
messagingSenderId: "878978392786"
};
firebase.initializeApp(config);
</script>
<script type="text/javascript" src="functions.js"> </script>
<script type="text/javascript" src="app.js"> </script>
<script type="text/javascript" src="chat.js"> </script>
</body>
</html>