-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
73 lines (61 loc) · 2.56 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>To-Do List</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Nunito&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/normalize.css/normalize.css">
<link rel="stylesheet" href="style.css">
<link rel="icon" href="icon/tdl.png" type="image/x-icon">
<script defer src="js/script.js" type="module"></script>
<!-- To see the TESTING results, un-comment this line of code below -->
<!-- <script defer src="testing/index.tests.js" type="module"></script> -->
</head>
<body>
<header>
<img id="logo" src="icon/tdl.png" alt="Logo">
<h1>To-Do List</h1>
</header>
<span id="taskInputWarning" class="warning-message">Please enter a valid task. Task cannot be just
whitespace.</span>
<!-- To-Do List Form -->
<form id="toDoForm">
<label for="taskInput" class="visually-hidden">Add a new task</label>
<input type="text" id="taskInput" placeholder="✍️ Add a new task" required>
<button id="submit-btn" type="submit">Add</button>
</form>
<section class="selection-menu">
<!-- Filter Dropdown -->
<div id="filterWrapper">
<label for="priorityFilter">Filter by: </label>
<select id="priorityFilter">
<option value="all" selected>All</option>
<option value="high">High</option>
<option value="medium">Medium</option>
<option value="low">Low</option>
</select>
</div>
<!-- Search Bar -->
<div id="searchWrapper">
<label for="searchInput" class="visually-hidden">Search tasks</label>
<input type="text" id="searchInput" placeholder="Search tasks...">
</div>
<!-- Clear Completed Tasks button -->
<button id="clearCompletedTasks">Clear Completed</button>
</section>
<!-- To-Do List Display Wrapper -->
<div id="taskListWrapper">
<ul id="taskList"></ul>
</div>
<!-- Footer -->
<footer id="footer">
<p>Created by
<a href="https://github.com/lucfercas" target="_blank" rel="noopener">Lucy</a> and
<a href="https://github.com/Paing-Ko" target="_blank" rel="noopener">Paing</a> from FAC29A
</p>
</footer>
</body>
</html>