-
Notifications
You must be signed in to change notification settings - Fork 0
/
popup.html
130 lines (130 loc) · 3.11 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
123
124
125
126
127
128
129
130
<!DOCTYPE html>
<html>
<head>
<title>Task Logger</title>
<style>
body {
font-family: Arial, sans-serif;
width: 300px;
padding: 20px;
font-size: 15px;
}
.hidden {
display: none;
}
.tabs {
display: flex;
justify-content: space-between;
}
.tab {
padding: 10px 20px;
cursor: pointer;
}
.tab.active {
border-bottom: 2px solid #007bff;
font-weight: bold;
}
.content {
display: none;
}
.content.active {
display: block;
}
#taskForm input,
#taskForm button {
width: calc(100% - 10px);
margin: 10px 0;
}
#taskForm input {
padding: 10px;
border: 1px solid #ccc;
border-radius: 5px;
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
transition: border-color 0.3s, box-shadow 0.3s;
}
#taskForm input:focus {
border-color: #007bff;
box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
outline: none;
}
.clickButton {
width: 100%;
margin-top: 20px;
padding: 10px;
background-color: #007bff;
color: white;
text-align: center;
border: none;
cursor: pointer;
border-radius: 5px;
}
#tasksList {
list-style-type: none;
padding: 0;
max-height: 250px;
overflow-y: scroll;
}
#tasksList li {
margin: 5px 0;
padding: 10px;
background-color: #f1f1f1;
border-radius: 5px;
}
#exportButton {
display: block;
width: 100%;
margin-top: 20px;
padding: 10px;
background-color: #007bff;
color: white;
text-align: center;
border: none;
cursor: pointer;
border-radius: 5px;
}
#exportButton:hover {
background-color: #0056b3;
}
#fileSizeEstimate {
text-align: center;
margin-top: 10px;
color: #fff;
}
#noLogsMessage {
text-align: center;
margin-top: 20px;
color: #888;
}
</style>
</head>
<body>
<div class="tabs">
<div class="tab active" data-tab="logTab">Log</div>
<div class="tab" data-tab="exportTab">Export</div>
</div>
<div id="logTab" class="content active">
<form id="taskForm">
<input
type="text"
id="taskInput"
autocomplete="off"
placeholder="Enter your task"
/>
<button class="clickButton" type="submit">Start Logging</button>
</form>
<p id="task" class="hidden"></p>
<button class="clickButton" id="finishTask" class="hidden">
Finish Task
</button>
</div>
<div id="exportTab" class="content">
<ul id="tasksList"></ul>
<div id="noLogsMessage" class="hidden">No task logs to export</div>
<button class="clickButton" id="exportButton">
Export All Logs
<span id="fileSizeEstimate">(0 MB)</span>
</button>
</div>
<script src="popup.js"></script>
</body>
</html>