-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
90 lines (82 loc) · 2.58 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Document</title>
<!-- GOOGLE FONT -->
<link
href="https://fonts.googleapis.com/css?family=Roboto:300,400,700&display=swap"
rel="stylesheet"
/>
<!-- FONT AWESOME -->
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.2/css/all.min.css"
integrity="sha512-1sCRPdkRXhBV2PBLUdRb4tMg1w2YPf37qatUFeS7zlBy7jJI8Lf4VHwWfZZfpXtYSLy85pkm9GaYVYMfw5BC1A=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
/>
<link rel="stylesheet" href="./css/style.css" />
</head>
<body>
<div class="card">
<div class="card__header">
<img src="./img/X2oObC4.png" />
</div>
<!-- <h2>hello!</h2> -->
<div class="card__body">
<div class="filter-btn">
<a id="one"><i class="fa fa-check-circle"></i></a>
<a id="two"><i class="fa fa-sort-alpha-down"></i></a>
<a id="three"><i class="fa fa-sort-alpha-up"></i></a>
<a id="all"><i class="fa fa-clock"></i></a>
<span class="toggle-btn">
<i class="fa fa-filter"></i>
<i class="fa fa-times"></i>
</span>
</div>
<div class="card__content">
<div class="card__title">
<h2>My Tasks</h2>
<p>September 9,2020</p>
</div>
<div class="card__add">
<input
id="newTask"
type="text"
placeholder="Enter an activity..."
/>
<button id="addItem">
<i class="fa fa-plus"></i>
</button>
</div>
<div class="card__todo">
<!-- Uncompleted tasks -->
<ul class="todo" id="todo"></ul>
<!-- Completed tasks -->
<ul class="todo" id="completed"></ul>
</div>
</div>
</div>
</div>
<script
src="https://code.jquery.com/jquery-3.4.1.js"
integrity="sha256-WpOohJOqMqqyKL9FccASB9O0KwACQJpFTUBLTYOVvVU="
crossorigin="anonymous"
></script>
<script>
$(function () {
$(".toggle-btn").click(function () {
$(".filter-btn").toggleClass("open");
});
$(".filter-btn a").click(function () {
$(".filter-btn").removeClass("open");
});
});
</script>
<!-- MAIN JS -->
<script type="module" src="./js/index.js"></script>
</body>
</html>