-
Notifications
You must be signed in to change notification settings - Fork 0
/
popup.html
122 lines (103 loc) · 2.5 KB
/
popup.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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
<!DOCTYPE html>
<html>
<head>
<style>
body {
min-height: 400px;
width: 300px;
background: white;
position: relative;
}
textarea {
display: block;
padding: 4px;
margin: 8px auto;
width: 80%;
outline: #005ecc auto 1px;
}
#changeColor {
position: absolute;
height: 30px;
width: 30px;
outline: none;
bottom: 4px;
left: 4px;
}
.addButton{
width: 60%;
margin: auto;
}
#addButton {
width: 100%;
background: white;
color: #005ecc;
outline: white auto 1px;
padding: 4px;
border-radius: 4px;
}
#addButton:hover{
outline: #005ecc auto 1px;
cursor: pointer;
}
.tasks{
margin: 8px auto;
}
.task{
align-items: center;
display: flex;
border-bottom: 1px solid #6a99d0;
padding: 4px 0px;
border-radius: 4px;
}
.task p{
margin: 0;
width: 80%;
}
.task .right{
align-items: center;
display: flex;
width: 20%;
}
.task img{
width: 24px;
}
.options{
display: flex;
}
.options div{
width: 50%;
text-align: center;
border: 1px solid gray;
}
.options .active {
background-color: gray;
}
</style>
</head>
<body>
<textarea name="inputElement" id="inputElement" placeholder="Put your task here"></textarea>
<button id="changeColor"></button>
<div class="addButton">
<button id="addButton"> Add Task</button>
</div>
<div class="tasks" id ="showTask">
<div class="task">
<p>This is a Task</p>
<div class="right">
<img src="images/anydo.svg" alt="D" >
<img src="images/delete.svg" alt="X" >
</div>
</div>
</div>
<!-- Div for shuffling between todo and done -->
<div style="display: block;">
<div class="options">
<div class="active">TODOS</div>
<div>DONE</div>
</div>
<!-- Div for Extra space -->
<div style="height: 40px;width: 100%;display: block;"></div>
</div>
<script src="popup.js"></script>
</body>
</html>