-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.html
101 lines (100 loc) · 3.25 KB
/
app.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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<title>Todo app</title>
<!---TOASTIFY JS-->
<link
rel="stylesheet"
type="text/css"
href="https://cdn.jsdelivr.net/npm/toastify-js/src/toastify.min.css"
/>
<!----BOOTSTRAP CSS-->
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css"
/>
<!---CUSTOM CSS-->
<link rel="stylesheet" type="text/css" href="Styles/style.css" />
</head>
<body>
<header>
<nav
class="navbar bg-dark border-bottom border-body"
data-bs-theme="dark"
>
<div class="container-fluid">
<a class="navbar-brand">To-do</a>
<span id="userEmail" class="text-white"></span>
</div>
</nav>
</header>
<main>
<div class="container">
<div class="row my-3">
<div class="col-12">
<span id="greeting-msg"></span>
</div>
</div>
</div>
<div class="container">
<div class="row mt-5 d-flex justify-content-center">
<div class="col-lg-5 col-sm-12">
<form onsubmit="addTask()" class="border border-dark p-3 rounded-1">
<label for="task"> Enter the task name</label>
<input
class="form-control my-2"
type="text"
id="taskNameIn"
placeholder="task"
aria-label="default input example"
/>
<label for="time"> Enter the due time</label>
<input
class="form-control my-2"
type="time"
id="taskDueIn"
placeholder="task"
aria-label="default input example"
/>
<button class="btn btn-success w-100 my-2">Add task</button>
</form>
</div>
</div>
<div class="container">
<div class="row d-flex align-items-center flex-column mt-4">
<div class="col-lg-8">
<div id="task" class="my-3">
<div class="d-flex justify-content-between">
<div id="taskName"><b>Name</b></div>
<div id="taskDue"><b>Due</b></div>
<div id="taskCreatedAt"><b>Created at</b></div>
</div>
<div class="d-flex justify-content-end pt-3 pe-4">
<h3>Actions</h3>
</div>
</div>
<div id="task-container"></div>
</div>
</div>
</div>
</div>
</main>
<footer class="container-fluid bg-dark">
<div class="row">
<div class="col-12 text-white text-center py-3"><span id="year"></span>© Made by Nouman</div>
</div>
</footer>
<!---TOASTIFY JS-->
<script
type="text/javascript"
src="https://cdn.jsdelivr.net/npm/toastify-js"
></script>
<!----BOOTSTRAP-->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css"></script>
<!----CUSTOM JS-->
<script src="JS/app.js"></script>
</body>
</html>