-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoptions.html
More file actions
164 lines (144 loc) · 3.73 KB
/
options.html
File metadata and controls
164 lines (144 loc) · 3.73 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
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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Tab Count Tracker Settings</title>
<style>
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
max-width: 600px;
margin: 0 auto;
padding: 20px;
color: #333;
}
h1 {
font-size: 24px;
margin-bottom: 20px;
color: #333;
}
.range-container {
background-color: #f7f7f7;
border-radius: 8px;
padding: 20px;
margin-bottom: 20px;
}
.range-row {
display: flex;
align-items: center;
margin-bottom: 15px;
}
.color-label {
width: 120px;
font-weight: bold;
display: flex;
align-items: center;
}
.color-sample {
display: inline-block;
width: 16px;
height: 16px;
border-radius: 50%;
margin-right: 8px;
}
.input-group {
display: flex;
align-items: center;
}
input[type="number"] {
width: 60px;
padding: 6px;
border: 1px solid #ccc;
border-radius: 4px;
margin: 0 5px;
}
label {
margin: 0 5px;
}
.button-container {
display: flex;
justify-content: space-between;
margin-top: 20px;
}
button {
padding: 8px 16px;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 14px;
}
#saveButton {
background-color: #4CAF50;
color: white;
}
#resetButton {
background-color: #f44336;
color: white;
}
.notice {
background-color: #e9f7fe;
border-left: 4px solid #2196F3;
padding: 10px 15px;
margin-top: 20px;
font-size: 14px;
}
</style>
</head>
<body>
<h1>Color Range Settings</h1>
<div class="range-container">
<div class="range-row">
<div class="color-label">
<span class="color-sample" style="background-color: #006400;"></span>
Dark Green
</div>
<div class="input-group">
<input type="number" id="greenMin" min="1" value="1" disabled>
<label>to</label>
<input type="number" id="greenMax" min="1" value="20">
</div>
</div>
<div class="range-row">
<div class="color-label">
<span class="color-sample" style="background-color: #000080;"></span>
Navy Blue
</div>
<div class="input-group">
<input type="number" id="orangeMin" min="1" disabled>
<label>to</label>
<input type="number" id="orangeMax" min="1" value="40">
</div>
</div>
<div class="range-row">
<div class="color-label">
<span class="color-sample" style="background-color: #4B0082;"></span>
Deep Purple
</div>
<div class="input-group">
<input type="number" id="redMin" min="1" disabled>
<label>to</label>
<input type="number" id="redMax" min="1" value="60">
</div>
</div>
<div class="range-row">
<div class="color-label">
<span class="color-sample" style="background-color: #800000;"></span>
Maroon
</div>
<div class="input-group">
<input type="number" id="darkRedMin" min="1" disabled>
<label>and above</label>
</div>
</div>
</div>
<div class="button-container">
<button id="resetButton">Reset to Default</button>
<button id="saveButton">Save Settings</button>
</div>
<div class="notice">
Note: Ranges are automatically adjusted to ensure they don't overlap.
The minimum value for each range is determined by the maximum value of the previous range.
</div>
<script src="options.js"></script>
</body>
</html>