This repository was archived by the owner on Jan 9, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathpopup.html
More file actions
104 lines (102 loc) · 2.1 KB
/
popup.html
File metadata and controls
104 lines (102 loc) · 2.1 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
101
102
103
104
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
body {
width: 400px;
font-family: helvetica, arial, sans-serif;
font-size: 13px;
}
#nav {
float: right;
}
a {
text-decoration: none;
color: black;
}
a:focus {
outline: none;
}
#settings {
float: left;
margin-top: -1px;
font-size: 12px;
}
#settings a {
font-weight: bold;
}
#settings a:hover {
text-decoration: underline;
}
#data {
margin-top: 10px;
}
#table_div {
margin-top: 15px;
width: 100%;
}
.active {
font-weight: bold;
}
#nodata {
display: none;
color: red;
font-weight: bold;
}
#nodata a {
text-decoration: underline;
color: red;
}
table {
width: 100%;
border-collapse: collapse;
}
th,
td {
padding: 8px;
text-align: left;
border-bottom: 1px solid #ddd;
}
th {
background-color: #f2f2f2;
}
.total-row {
font-weight: bold;
}
</style>
<!-- Load Chart.js -->
<script src="chart.js"></script>
<!-- Load popup script -->
<script src="popup.js"></script>
</head>
<body>
<div id="nav">
<a id="today" href="#">Today</a>
|
<a id="average" href="#">Average</a>
|
<a id="all" href="#">All Time</a>
</div>
<div id="settings">
<a id="options" href="#">Options</a>
</div>
<div style="clear: both"></div>
<div id="data">
<span id="nodata">Start browsing to collect usage data.</span>
<div id="chart_div">
<canvas id="pieChart"></canvas>
</div>
<div id="table_div">
<table id="dataTable">
<thead>
<tr>
<th>Domain</th>
<th>Time Spent</th>
</tr>
</thead>
<tbody id="tableBody"></tbody>
</table>
</div>
</div>
</body>
</html>