-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
107 lines (78 loc) · 3.36 KB
/
index.html
File metadata and controls
107 lines (78 loc) · 3.36 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
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
<!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">
<title>Ninja room</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<link rel="stylesheet" href="style.css">
</head>
<body>
<!-- container && title -->
<div class="container my-4">
<h1 class="my-4 text-center">chatroom Wild Code School</h1>
<!-- button -->
<div class="chat-rooms mb-3 text-center">
<div class="my-2 choose">choose a chatroom:</div>
<button class="btn" id="general">#general</button>
<button class="btn" id="html">#html/css</button>
<button class="btn" id="javascript">#javascript</button>
<button class="btn" id="framework">#framework</button>
</div>
<!-- chat list -->
<div class="chat-window">
<ul class="chat-list list-group"></ul>
</div>
<!-- new chatroom -->
<form class="new-chat my-3">
<div class="input-group">
<div class="input-group-prepend">
<div class="input-group-text">tape your message:</div>
</div>
<input type="text" id="message" class="form-control" required>
<div class="input-group-append">
<input type="submit" value="send" class="btn">
</div>
</div>
</form>
<!-- update name -->
<form class="new-name my-3">
<div class="input-group">
<div class="input-group-prepend">
<div class="input-group-text">update your name</div>
</div>
<input type="text" id="name" class="form-control" required>
<div class="input-group-append">
<input type="submit" value="update" class="btn">
</div>
</div>
<div class="update-mssg"></div>
</form>
</div>
<script src="https://www.gstatic.com/firebasejs/8.10.0/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.10.0/firebase-firestore.js"></script>
<script>
// Import the functions you need from the SDKs you need
// TODO: Add SDKs for Firebase products that you want to use
// https://firebase.google.com/docs/web/setup#available-libraries
// Your web app's Firebase configuration
var config = {
apiKey: "AIzaSyD3_x4jiOAP_fllNZNufGFQmZqCNbzOKPI",
authDomain: "fir-1f6a3.firebaseapp.com",
projectId: "fir-1f6a3",
storageBucket: "fir-1f6a3.appspot.com",
messagingSenderId: "240332069056",
appId: "1:240332069056:web:7dacaae1d475880189f525"
};
// Initialize Firebase
firebase.initializeApp(config);
const db = firebase.firestore();
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/date-fns/1.30.1/date_fns.min.js"></script>
<script src="scripts/chat.js"></script>
<script src="scripts/ui.js"></script>
<script src="scripts/app.js"></script>
</body>
</html>