-
Notifications
You must be signed in to change notification settings - Fork 14
/
index.html
79 lines (62 loc) · 2.28 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
<!DOCTYPE html>
<html lang="en" data-theme="bumblebee">
<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">
<!-- css -->
<link rel="stylesheet" href="style.css">
<!--Icons-->
<link href='https://unpkg.com/boxicons@2.1.2/css/boxicons.min.css' rel='stylesheet'>
<link rel="icon" type="image/x-icon" href="to do.png">
<title>Todolist</title>
</head>
<body>
<!-- main todo container -->
<div class="container">
<!-- header that has input and add button -->
<header>
<h1>Todo List</h1>
<div class="input-section">
<input id="todo-input" type="text" placeholder="📑 Add your todo here.."
class="input w-full max-w-xs" />
<button id="add-button" class="btn btn-add ">
<i class="bx bx-plus bx-sm"></i>
</button>
</div>
</header>
<!-- delete buttons -->
<div class="todos-filter">
<button id="delete-selected" class="btn btn-ghost delete-selected-btn">
Delete Selected
</button>
<button id="delete-all" class="btn btn-ghost delete-all-btn">
Delete All
</button>
</div>
<!-- this is the dynamic content which dds ups all the todos -->
<ul id="all-todos" class="todos-list">
</ul>
<!-- dropdown throgh which we can apply filters -->
<div class="filters">
<div class="dropdown">
<button class="dropbtn">Filter</button>
<div class="dropdown-content">
<a href="#" id="all">All</a>
<a href="#" id="rem">Pending</a>
<a href="#" id="com">Completed</a>
</div>
</div>
<!-- value showing completed task and all -->
<div class="completed-task">
<p>Completed: <span id="c-count">0</span></p>
</div>
<div class="remaining-task">
<p>Total Tasks: <span id="r-count">0</span></p>
</div>
</div>
</div>
<!-- JS -->
<script src="index.js"></script>
</body>
</html>