-
Notifications
You must be signed in to change notification settings - Fork 0
/
popup.html
59 lines (55 loc) · 1.56 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Tab Counter</title>
<link rel="stylesheet" href="styles.css" />
<script src="chart.min.js"></script>
</head>
<body>
<div class="statsDiv" style="width: 410px; height: auto">
<h2>Tabs/Windows Counter and Stats</h2>
<table>
<thead>
<tr>
<th>Open tabs</th>
<th>Open windows</th>
<th colspan="2">All-time (total) tabs</th>
</tr>
</thead>
<tbody>
<tr>
<td id="tab-count">-</td>
<td id="window-count">-</td>
<td id="all-time-tabs">-</td>
<td id="all-time-tabs"><button id="resetButton">Reset</button></td>
</tr>
</tbody>
</table>
<div class="chartDiv">
<canvas id="chart"></canvas>
<script src="popup.js"></script>
</div>
<div class="inputDiv">
<div>
<label for="numOfDays">Number of days displayed:</label>
<input
type="number"
id="numOfDays"
name="numOfDays"
value="7"
min="1"
max="30"
step="1"
/>
</div>
<div class="checkboxDiv">
<label for="dateFormat">Day/Month</label>
<input type="checkbox" id="dateFormat" name="dateFormat" checked />
<label for="toggleTabWindow">Tab/Window</label>
<input type="checkbox" id="toggleTabWindow" name="toggleTabWindow" checked />
</div>
</div>
</div>
</body>
</html>