-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
73 lines (67 loc) · 2.1 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
<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">
<link rel="stylesheet" href="index.css" />
<title>Databases (Firebase)</title>
<style>
.container{
max-width: 400px;
}
</style>
</head>
<body>
<!-- <div class="container my-5">
<h2>Recipes</h2>
<ul></ul>
<form>
<label for="recipe">Add a new recipe:</label>
<div class="input-group">
<input type="text" class="form-control" id="recipe" required>
<div class="input-group-append">
<input type="submit" value="add" class="btn btn-outline-secondary">
</div>
</div>
</form>
<button>Unsubscribe from changes</button>
</div> -->
<div class="container">
<div class="top">
<h2 class="title">Recipe</h2>
<form class="form">
<div class="input-grp">
<label for="recipe">Add New Recipe :</label>
<input type="text" id="recipe" required placeholder="recipe"></input>
<input type="text" id="fname" name="fname" placeholder="Prepared By">
<div class="submitContainer">
<input class="enter" type="submit" value="Add">
</div>
</div>
</form>
</div>
<div class=listing>
<ul></ul>
</div>
</div>
<script src="https://www.gstatic.com/firebasejs/5.8.4/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/5.8.4/firebase-firestore.js"></script>
<script>
// Initialize Firebase
// For Firebase JS SDK v7.20.0 and later, measurementId is optional
const config = {
apiKey: "AIzaSyBAI_9i--WSNa6FYk65jyvLby6Qa_K2jF8",
authDomain: "veggie-list.firebaseapp.com",
databaseURL: "https://veggie-list-default-rtdb.firebaseio.com",
projectId: "veggie-list",
storageBucket: "veggie-list.appspot.com",
messagingSenderId: "387263981043",
appId: "1:387263981043:web:be050fc8a817b305bc9e86",
measurementId: "G-BXP2HB5D7G"
};
firebase.initializeApp(config);
const db = firebase.firestore();
</script>
<script src="index.js"></script>
</body>
</html>