forked from Kritika30032002/To-Do-List-Application
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
193 lines (189 loc) Β· 7.78 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
<!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="images/todoWhite.png" type="image/x-icon" />
<link
rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T"
crossorigin="anonymous"
/>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/flatpickr/dist/flatpickr.min.css"
/>
<script src="https://cdn.jsdelivr.net/npm/flatpickr"></script>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css"
/>
<link rel="stylesheet" href="style.css" />
<title>To-Do List</title>
</head>
<body>
<div
id="lblsuccess"
class="message success-message"
style="display: none"
></div>
<div
id="lblerror"
class="message danger-message"
style="display: none"
></div>
<label class="switch">
<span class="sun"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="#ffd43b"><circle r="5" cy="12" cx="12"></circle><path d="m21 13h-1a1 1 0 0 1 0-2h1a1 1 0 0 1 0 2zm-17 0h-1a1 1 0 0 1 0-2h1a1 1 0 0 1 0 2zm13.66-5.66a1 1 0 0 1 -.66-.29 1 1 0 0 1 0-1.41l.71-.71a1 1 0 1 1 1.41 1.41l-.71.71a1 1 0 0 1 -.75.29zm-12.02 12.02a1 1 0 0 1 -.71-.29 1 1 0 0 1 0-1.41l.71-.66a1 1 0 0 1 1.41 1.41l-.71.71a1 1 0 0 1 -.7.24zm6.36-14.36a1 1 0 0 1 -1-1v-1a1 1 0 0 1 2 0v1a1 1 0 0 1 -1 1zm0 17a1 1 0 0 1 -1-1v-1a1 1 0 0 1 2 0v1a1 1 0 0 1 -1 1zm-5.66-14.66a1 1 0 0 1 -.7-.29l-.71-.71a1 1 0 0 1 1.41-1.41l.71.71a1 1 0 0 1 0 1.41 1 1 0 0 1 -.71.29zm12.02 12.02a1 1 0 0 1 -.7-.29l-.66-.71a1 1 0 0 1 1.36-1.36l.71.71a1 1 0 0 1 0 1.41 1 1 0 0 1 -.71.24z"></path></g></svg></span>
<span class="moon"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><path d="m223.5 32c-123.5 0-223.5 100.3-223.5 224s100 224 223.5 224c60.6 0 115.5-24.2 155.8-63.4 5-4.9 6.3-12.5 3.1-18.7s-10.1-9.7-17-8.5c-9.8 1.7-19.8 2.6-30.1 2.6-96.9 0-175.5-78.8-175.5-176 0-65.8 36-123.1 89.3-153.3 6.1-3.5 9.2-10.5 7.7-17.3s-7.3-11.9-14.3-12.5c-6.3-.5-12.6-.8-19-.8z"></path></svg></span>
<input type="checkbox" id="modeToggle" class="mode-toggle input" />
<span class="slider"></span>
</label>
<!-- Confirmation dialog -->
<div id="custom-confirm" class="custom-confirm">
<div class="confirm-content">
<div>
<i id="confirm-cancel" class="fas fa-times close-button"></i>
</div>
<h2>Confirmation</h2>
<h4 id="confirm-msg">Are you sure you want to delete this task?</h4>
<button id="confirm-yes">Yes</button>
<button id="confirm-no">No</button>
</div>
</div>
<!-- ------------------- -->
<!-- Confirmation All- dialog -->
<div id="custom-confirm-all" class="custom-confirm-all">
<div class="confirm-content-all">
<div>
<i id="confirm-cancel-all" class="fas fa-times close-button"></i>
</div>
<h2>Confirmation</h2>
<h4 id="confirm-msg-all">Are you sure you want to delete this task?</h4>
<button id="confirm-yes-all">Yes</button>
<button id="confirm-no-all">No</button>
</div>
</div>
<!-- ------------------- -->
<div class="container">
<!-- <header class="text-center">
<div class="container">
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12 text-center">
</div>
</div>
</div>
</header> -->
<h1 class="text-center text-primary"><span id="element"></span></h2>
<p class="text-center text-secondary">Simply add your tasks here</p>
<div class="container main mt-5 w-80">
<h3 class="text-center mb-4">Add your tasks below</h3>
<form
id="addForm"
class="row w-100 d-flex flex-wrap justify-content-between align-items-center"
>
<span class="col-md-10 col-sm-12 input-group mt-3">
<input
class="col-10 form-control"
type="text"
onkeyup="enableSubmit(this, 'submitBtn')"
id="item"
placeholder="Write your task here..."
/>
<input
class="btn btn-warning text-light col-2"
id="dueDate"
placeholder="Date"
/>
</span>
<input
type="submit"
class="btn btn-success col-md-2 col-sm-12 mt-3"
id="submitBtn"
value="Add"
disabled
/>
<button
id="editTask"
class="form_btn btn btn-primary col-md-2 col-sm-6 mt-3"
style="display: none"
>
Edit
</button>
</form>
<div class="text-center">
<h3 class="mt-4 text-center" id="heading-tasks">Tasks</h3>
<div class="dropdown">
<button class="btn btn-warning dropbtn d-flex align-items-center text-light ml-2"
onclick="myFunction();">
<ion-icon class="dropbtn" name="funnel-outline"
style="font-size: 25px; margin-right: 6px"
></ion-icon>
Sort By
<ion-icon class="dropbtn" name="chevron-down-outline"
style="font-size: 25px; margin-left: 6px"
></ion-icon>
</button>
<div id="myDropdown" class="dropdown-content ml-2 mt-0.5">
<a onclick="sortByDueDate('early');">Early To Do</a>
<a onclick="sortByDueDate('late');">Lately To Do</a>
</div>
</div>
<form id="newTaskForm">
<ul class="list-group" id="taskList"></ul>
</form>
<button
id="clearAllTasks"
class="btn btn-danger clear_btn"
onclick="clearAllTasks();"
>
<span class="d-flex align-items-center">
<ion-icon
name="trash-outline"
style="font-size: 25px; margin-right: 6px"
></ion-icon
>Clear All Tasks</span
>
</button>
</div>
</div>
</div>
<br /><br />
<h2 style="text-align: center" class="mb-3">Why SimplyTasked?</h2>
<p style="text-align: center" class="mb-5">
Simply, because it is a SIMPLE To-Do List Tool to organize your tasks
efficiently.
</p>
<br />
<div class="list" style="text-align: center">
<p>=> Intuitive task management</p>
<p>=> Seamless due date tracking</p>
<p>=> Beautiful and user-friendly design</p>
</div>
<!-- dynamic copyright year by- himanghsumishra -->
<div id="footer">
© Copyright
<span id="copyright">
<script>document.getElementById('copyright').appendChild(document.createTextNode(new Date().getFullYear()))</script>
</span>
SIMPLY TASKED
</div>
<script src="index.js"></script>
<script
type="module"
src="https://unpkg.com/[email protected]/dist/ionicons/ionicons.esm.js"
></script>
<script
nomodule
src="https://unpkg.com/[email protected]/dist/ionicons/ionicons.js"
>
</script>
<script src="https://unpkg.com/[email protected]/dist/typed.umd.js"></script>
<script>
var typed = new Typed('#element', {
strings: ['To-Do List π', 'Organize tasks, boost daily productivity! π.', 'Achieve Your Goals One Task at a Time π', 'Plan, Act, Achieve: Get Started Now! π..'],
typeSpeed: 50,
});
</script>
</body>
</html>