-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
79 lines (61 loc) · 2.45 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>✍️ 🅻🅸🆂🆃🆂</h1>
<div class="input-section">
<span style="padding: 5px;">📑</span>
<input id="todo-input" type="text" placeholder="Add 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>
<div class="input-section" style="margin-top: 10px; color: darkgrey; ">
<!-- 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>
</header>
<div class="todos-filter">
<!-- delete buttons -->
<button id="delete-selected" class="btn btn-ghost delete-selected-btn">
Delete Selected
</button>
<!-- dropdown throgh which we can apply filters -->
<div class="dropdown">
<button class="dropbtn">FILTER</button>
<div class="dropdown-content">
<a href="#" id="all">🏠ALL TASKS</a>
<a href="#" id="rem">⏳PENDING</a>
<a href="#" id="com">✔️COMPLETED</a>
</div>
</div>
<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>
<!-- JS -->
<script src="index.js"></script>
</body>
</html>