-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpopup.html
More file actions
100 lines (90 loc) · 2.04 KB
/
popup.html
File metadata and controls
100 lines (90 loc) · 2.04 KB
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
<!DOCTYPE html>
<html>
<head>
<style>
:root {
--bg1: #1d3b73;
--bg2: #6b2ad7;
}
body {
width: 330px;
min-height: 460px;
padding: 16px;
margin: 0;
font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
color: #ffffff;
background: linear-gradient(145deg, var(--bg1), var(--bg2));
overflow: hidden;
box-sizing: border-box;
}
h3 {
margin: 0 0 12px;
font-size: 20px;
letter-spacing: 0.02em;
text-transform: uppercase;
color: #f8f9ff;
}
.toolbar {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
margin-bottom: 14px;
}
#total-time {
font-size: 14px;
color: #f5f7ff;
}
#format-data {
font-size: 12px;
padding: 5px 10px;
border: none;
border-radius: 999px;
background: rgba(255, 255, 255, 0.14);
color: #ffffff;
cursor: pointer;
transition: background 0.2s ease, transform 0.2s ease;
}
#format-data:hover {
background: rgba(255, 255, 255, 0.24);
transform: translateY(-1px);
}
#charts {
max-height: 400px;
overflow-y: auto;
padding-right: 4px;
}
.chart-row {
margin-bottom: 12px;
padding: 8px 10px;
border-radius: 14px;
background: rgba(255, 255, 255, 0.08);
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.chart-label {
font-weight: 700;
margin: 0 0 6px;
font-size: 13px;
color: #edf2ff;
}
.bar {
height: 16px;
background: linear-gradient(90deg, #8cc8ff 0%, #60e7ff 100%);
margin: 0;
width: 0%;
border-radius: 10px;
box-shadow: 0 0 16px rgba(96, 231, 255, 0.35);
}
</style>
</head>
<body>
<h3>Time Spent</h3>
<div class="toolbar">
<div id="total-time"></div>
<button id="format-data">Format Data</button>
</div>
<div id="charts"></div>
<script src="gsap.min.js"></script>
<script src="popup.js"></script>
</body>
</html>