-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
85 lines (68 loc) · 3.11 KB
/
index.html
File metadata and controls
85 lines (68 loc) · 3.11 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ToDo App</title>
<!-- External CSS -->
<link rel="stylesheet" href="./style.css">
<!-- FontAwesome ICON -->
<script src="https://kit.fontawesome.com/5289663089.js" crossorigin="anonymous"></script>
<!-- Favicon -->
<link rel="shortcut icon" href="./favicon.webp" type="image/x-icon">
</head>
<body>
<div class="container">
<h1 id="todoTitle">ToDo App</h1>
<div class="enterTask">
<input type="text" placeholder="Add your new todo" id="taskInput" autofocus>
<!-- PLus ICON -->
<svg xmlns="http://www.w3.org/2000/svg" id="addSvg" height="1em" viewBox="0 0 448 512">
<path
d="M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32V224H48c-17.7 0-32 14.3-32 32s14.3 32 32 32H192V432c0 17.7 14.3 32 32 32s32-14.3 32-32V288H400c17.7 0 32-14.3 32-32s-14.3-32-32-32H256V80z" />
</svg>
</div>
<div class="task-length-error" style="display: none;">
<p>Needs at least 5 characters</p>
</div>
<div class="filter-tasks">
<select id="filter-list" title="Filter Tasks">
<optgroup label="Filter Tasks">
<option value="all" selected>All</option>
<option value="active">Active</option>
<option value="completed">Completed</option>
</optgroup>
</select>
</div>
<div class="task-container">
<div class="task" taskid="1">
<!-- Pending Task -->
<i class="fa-regular fa-circle pendingSvg" data="check"></i>
<span class="taskText" data="task">Follow @Alkaison on Twitter</span>
<!-- Edit ICON -->
<i class="fa-solid fa-pencil editSvg" data="edit"></i>
<!-- Delete ICON -->
<i class="fa-solid fa-trash deleteSvg" data="delete"></i>
</div>
<div class="task" taskid="2">
<i class="fa-regular fa-circle pendingSvg" data="check"></i>
<span class="taskText" data="task">Complete the first task</span>
<i class="fa-solid fa-pencil editSvg" data="edit"></i>
<i class="fa-solid fa-trash deleteSvg" data="delete"></i>
</div>
<div class="task" taskid="3">
<i class="fa-regular fa-circle pendingSvg" data="check"></i>
<span class="taskText" data="task">Thank you for visiting here</span>
<i class="fa-solid fa-pencil editSvg" data="edit"></i>
<i class="fa-solid fa-trash deleteSvg" data="delete"></i>
</div>
</div>
<div class="clearAllTask">
<span id="clearAllTaskText">You have 3 pending tasks</span>
<button type="button" id="clearAllTaskBtn">Clear All</button>
</div>
</div>
<!-- Javascript -->
<script src="./script.js" defer></script>
</body>
</html>