-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
70 lines (53 loc) · 2.32 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
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Firebase Firestore CRUD con Javascript y HTML</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="container">
<form class="form" id="task-form">
<div class="form-container">
<div class="form-group">
<input type="text" id="task-title" class="form-control" class="Task Title" placeholder="Task Title" autofocus>
</div>
<div class="form-group">
<textarea id="task-description" rows="3" class="form-control" placeholder="Task Description"></textarea>
</div>
<div class="botones">
<button class="button-01" id="btn-task-form">Guardar</button>
<div id="btn-cancelar">
</div>
</div>
</div>
</form>
<div class="sub-container" id="tasks-container">
</div>
</div>
<!-- The core Firebase JS SDK is always required and must be listed first -->
<script src="https://www.gstatic.com/firebasejs/7.15.5/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/7.15.5/firebase-firestore.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.15.5/firebase-analytics.js"></script>
<script>
// Your web app's Firebase configuration
var firebaseConfig = {
apiKey: "AIzaSyB_EPSESVqXvo65Cj7G2O2ZAQmxNuqACqA",
authDomain: "daniek-crud.firebaseapp.com",
databaseURL: "https://daniek-crud.firebaseio.com",
projectId: "daniek-crud",
storageBucket: "daniek-crud.appspot.com",
messagingSenderId: "531025386699",
appId: "1:531025386699:web:3547856a73807186458f4e",
measurementId: "G-Y6RTZ9F60G"
};
// Initialize Firebase
firebase.initializeApp(firebaseConfig);
firebase.analytics();
</script>
<script src="index.js"></script>
</body>
</html>