-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
73 lines (68 loc) · 2.98 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Firebase Realtime Database - Client Side</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css">
<link rel="stylesheet" href="./style.css">
</head>
<body>
<main>
<form>
<label for="userId">User ID</label><br>
<input type="text" name="userId" id="userId"><br>
<label for="firstName">First Name</label><br>
<input type="text" name="firstName" id="firstName"><br>
<label for="lastName">Last Name</label><br>
<input type="text" name="lastName" id="lastName"><br>
<label for="age">Age</label><br>
<input type="number" name="age" id="age"><br>
<button id="addBtn" class="btn waves-effect waves-light">Add</button>
<button id="updateBtn" class="btn waves-effect waves-light">Update</button>
<button id="removeBtn" class="btn waves-effect red darken-1">Remove</button>
</form>
</main>
<!-- The core Firebase JS SDK is always required and must be listed first -->
<!-- The core Firebase JS SDK is always required and must be listed first -->
<script src="https://www.gstatic.com/firebasejs/8.2.10/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.2.10/firebase-database.js"></script>
<!-- TODO: Add SDKs for Firebase products that you want to use
https://firebase.google.com/docs/web/setup#available-libraries -->
<script src="https://www.gstatic.com/firebasejs/8.2.10/firebase-analytics.js"></script>
<!-- TODO: Add SDKs for Firebase products that you want to use
https://firebase.google.com/docs/web/setup#available-libraries -->
<!-- <script>
// Your web app's Firebase configuration
var firebaseConfig = {
apiKey: "AIzaSyA9pFoZzl5gyILVsupHNsHQUR1BTFxzL18",
authDomain: "my-firebase-project-312c4.firebaseapp.com",
databaseURL: "https://my-firebase-project-312c4.firebaseio.com",
projectId: "my-firebase-project-312c4",
storageBucket: "my-firebase-project-312c4.appspot.com",
messagingSenderId: "165928203200",
appId: "1:165928203200:web:0db7e7bd941acef89ece25"
};
// Initialize Firebase
firebase.initializeApp(firebaseConfig);
</script> -->
<script>
// Your web app's Firebase configuration
// For Firebase JS SDK v7.20.0 and later, measurementId is optional
var firebaseConfig = {
apiKey: "AIzaSyAHpz_yCflyRk1fBmaY2ZkDwpxMJ13-j0w",
authDomain: "testingapp-1d4f2.firebaseapp.com",
projectId: "testingapp-1d4f2",
storageBucket: "testingapp-1d4f2.appspot.com",
messagingSenderId: "743001089945",
appId: "1:743001089945:web:ae18c4b6149deae43c9508",
measurementId: "G-P9MN894VRC"
};
// Initialize Firebase
firebase.initializeApp(firebaseConfig);
firebase.analytics();
</script>
<script src="./functions.js"></script>
</body>
</html>