-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
77 lines (59 loc) · 2.53 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
74
75
76
77
<!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>Crud basico con Firebase y Javascript</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/lux/bootstrap.min.css">
</head>
<body>
<div class="conteiner p-4">
<div class="row">
<div class="col-md-6">
<div class="card">
<div class="card-body">
<form id="task-form">
<div class="form-group">
<input
type="text"
id="task-title"
class="form-control"
placeholder="Task Title"
autofocus>
</div>
<div class="form-group">
<textarea id="task-description" rows="3" class="form-control" placeholder="Task Description"></textarea>
</div>
<button class="btn btn-primary" id="btn-task-form">
Save
</button>
</form>
</div>
</div>
</div>
<div class="col-md-6"id="tasks-conteiner">
</div>
</div>
</div>
<!-- The core Firebase JS SDK is always required and must be listed first -->
<script src="https://www.gstatic.com/firebasejs/8.6.2/firebase-app.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.6.2/firebase-firestore.js"></script>
<script>
// Your web app's Firebase configuration
var firebaseConfig = {
apiKey: "AIzaSyBOeDBSj497ewIDi1rZKaNfn-ggcppFQIo",
authDomain: "crud-db9e4.firebaseapp.com",
projectId: "crud-db9e4",
storageBucket: "crud-db9e4.appspot.com",
messagingSenderId: "283245717891",
appId: "1:283245717891:web:211f770f0c0035f753aeb6"
};
// Initialize Firebase
firebase.initializeApp(firebaseConfig);
</script>
<script src="index.js"></script>
</body>
</html>