-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
69 lines (59 loc) · 3.14 KB
/
index.html
File metadata and controls
69 lines (59 loc) · 3.14 KB
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
<!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">
<!-- Firebase CDN -->
<script src="https://www.gstatic.com/firebasejs/8.8.1/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.8.1/firebase-auth.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.8.1/firebase-firestore.js"></script>
<script>
const firebaseConfig = {
apiKey: "YOUR_KEY",
authDomain: "YOUR_DOMAIN",
projectId: "YOUR_UID",
storageBucket: "YOUR_BUCKET_URI",
messagingSenderId: "YOUR_UID",
appId: "APP_ID"
};
// Initialize Firebase
firebase.initializeApp(firebaseConfig);
</script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/css/bootstrap.min.css" integrity="sha384-B0vP5xmATw1+K9KRQjQERJvTumQW0nPEzvF6L/Z6nronJ3oUOFUFpCjEUQouq2+l" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css" integrity="sha512-iBBXm8fW90+nuLcSKlbmrPcLa0OT92xO1BIsZ+ywDWZCvqsWgccV3gFoRBv0z+8dLJgyAHIhR35VZc2oM/gI1w==" crossorigin="anonymous" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/css/toastr.min.css">
<title>My Todo App 📌</title>
</head>
<body>
<div class="d-flex justify-content-center align-items-center flex-column vh-100 bg-dark">
<h1 class="text-white font-weight-normal"> My Todo List <i class="fas fa-clipboard-list"></i> </h1><br>
<form id="form_task" onsubmit="addTask(event)" style="width:350px">
<div class="form-group d-flex">
<input type="text" class="form-control" placeholder="What is your main focus today? " name="task" id="task" required autofocus>
<button class="btn btn-warning text-white ml-1" id="btnadd"><i class="fas fa-plus-square"></i></button>
<button class="btn btn-success text-white ml-1" style="display:none" id="btnupdate" onclick="updateTask(event)"><i class="fas fa-save"></i></button>
</div>
</form>
<table class="table table-sm table-borderless table-hover bg-secondary text-white" style="width:350px">
<thead>
<tr>
<caption>List of Task</caption>
<th>Items</th>
<th></th>
</tr>
</thead>
<tbody id="d_task">
</tbody>
</table>
</div>
<script>
const auth = firebase.auth();
const db = firebase.firestore();
</script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/js/bootstrap.bundle.min.js" integrity="sha384-Piv4xVNRyMGpqkS2by6br4gNJ7DXjqk09RmUpJ8jgGtD7zP9yug3goQfGII0yAns" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/js/toastr.min.js"></script>
<script src="./app.js"></script>
</body>
</html>