-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
47 lines (42 loc) · 1.81 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Chat App</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<!-- <script type="module">
// Import the functions you need from the SDKs you need
import { initializeApp } from "https://www.gstatic.com/firebasejs/10.12.2/firebase-app.js";
import { getAnalytics } from "https://www.gstatic.com/firebasejs/10.12.2/firebase-analytics.js";
// 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
// For Firebase JS SDK v7.20.0 and later, measurementId is optional
const firebaseConfig = {
apiKey: "AIzaSyB8_BjV_XSn5-g35FGo6NOKX3QExCcyPLw",
authDomain: "to-do-list-70530.firebaseapp.com",
projectId: "to-do-list-70530",
storageBucket: "to-do-list-70530.appspot.com",
messagingSenderId: "162040004643",
appId: "1:162040004643:web:9a05be5bea2b0aab26f196",
measurementId: "G-1JJ2GRZWZ7"
};
// Initialize Firebase
const app = initializeApp(firebaseConfig);
const analytics = getAnalytics(app);
</script> -->
<div class="container">
<h1>Chat App</h1>
<input type="text" id="message-input" placeholder="Type a message...">
<button id="send-btn">Send</button>
<ul id="chat-log">
<!-- chat messages will be displayed here -->
</ul>
</div>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/firebase.js"></script>
<script src="script.js"></script>
</body>
</html>