Repository navigation
Expand file tree
/
Copy pathoptions.html
More file actions
401 lines (351 loc) · 11.8 KB
/
Copy pathoptions.html
File metadata and controls
401 lines (351 loc) · 11.8 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
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>StackScope Settings</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
:root {
--primary: #6366f1;
--primary-dark: #4f46e5;
--secondary: #8b5cf6;
--dark: #0f172a;
--gray: #64748b;
--light: #f8fafc;
--white: #ffffff;
--border: #e2e8f0;
--shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
[data-theme="dark"] {
--dark: #ffffff;
--gray: #94a3b8;
--light: #1e293b;
--white: #0f172a;
--border: #334155;
--shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
background: var(--light);
color: var(--dark);
line-height: 1.6;
transition: all 0.3s ease;
}
.container {
max-width: 600px;
margin: 0 auto;
padding: 40px 20px;
}
.header {
text-align: center;
margin-bottom: 40px;
padding-bottom: 20px;
border-bottom: 2px solid var(--border);
}
.header h1 {
font-size: 2.5rem;
font-weight: 800;
margin-bottom: 10px;
color: var(--primary);
}
.header p {
color: var(--gray);
font-size: 1.1rem;
}
.settings-section {
background: var(--white);
border-radius: 12px;
padding: 30px;
margin-bottom: 20px;
box-shadow: var(--shadow);
border: 1px solid var(--border);
}
.section-title {
font-size: 1.5rem;
font-weight: 700;
margin-bottom: 20px;
color: var(--dark);
display: flex;
align-items: center;
gap: 10px;
}
.setting-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 15px 0;
border-bottom: 1px solid var(--border);
}
.setting-item:last-child {
border-bottom: none;
}
.setting-info {
flex: 1;
}
.setting-name {
font-weight: 600;
font-size: 1rem;
margin-bottom: 4px;
color: var(--dark);
}
.setting-description {
font-size: 0.9rem;
color: var(--gray);
}
.toggle-switch {
position: relative;
display: inline-block;
width: 50px;
height: 26px;
}
.toggle-switch input {
opacity: 0;
width: 0;
height: 0;
}
.toggle-slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: var(--border);
transition: 0.4s;
border-radius: 26px;
}
.toggle-slider:before {
position: absolute;
content: "";
height: 20px;
width: 20px;
left: 3px;
bottom: 3px;
background-color: white;
transition: 0.4s;
border-radius: 50%;
}
input:checked + .toggle-slider {
background-color: var(--primary);
}
input:checked + .toggle-slider:before {
transform: translateX(24px);
}
.select-setting {
display: flex;
align-items: center;
gap: 15px;
}
.select-setting select {
padding: 8px 12px;
border: 1px solid var(--border);
border-radius: 6px;
background: var(--white);
color: var(--dark);
font-size: 0.9rem;
cursor: pointer;
transition: border-color 0.3s ease;
}
.select-setting select:focus {
outline: none;
border-color: var(--primary);
}
.save-button {
background: var(--primary);
color: white;
border: none;
padding: 12px 30px;
border-radius: 8px;
font-size: 1rem;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
margin-top: 30px;
}
.save-button:hover {
background: var(--primary-dark);
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}
.reset-button {
background: transparent;
color: var(--gray);
border: 1px solid var(--border);
padding: 10px 20px;
border-radius: 6px;
font-size: 0.9rem;
cursor: pointer;
margin-left: 15px;
transition: all 0.3s ease;
}
.reset-button:hover {
background: var(--light);
color: var(--dark);
}
.notification {
position: fixed;
top: 20px;
right: 20px;
background: var(--primary);
color: white;
padding: 15px 25px;
border-radius: 8px;
box-shadow: var(--shadow);
transform: translateX(400px);
transition: transform 0.3s ease;
z-index: 1000;
}
.notification.show {
transform: translateX(0);
}
.footer {
text-align: center;
margin-top: 40px;
padding-top: 20px;
border-top: 1px solid var(--border);
color: var(--gray);
}
.footer a {
color: var(--primary);
text-decoration: none;
}
.footer a:hover {
text-decoration: underline;
}
@media (max-width: 768px) {
.container {
padding: 20px 15px;
}
.header h1 {
font-size: 2rem;
}
.settings-section {
padding: 20px;
}
.setting-item {
flex-direction: column;
align-items: flex-start;
gap: 10px;
}
}
</style>
</head>
<body>
<div class="container">
<div class="header">
<h1>⚙️ StackScope Settings</h1>
<p>Customize your technology detection experience</p>
</div>
<div class="settings-section">
<h2 class="section-title">🎨 Appearance</h2>
<div class="setting-item">
<div class="setting-info">
<div class="setting-name">Dark Mode</div>
<div class="setting-description">Switch between light and dark themes</div>
</div>
<label class="toggle-switch">
<input type="checkbox" id="darkModeToggle" checked>
<span class="toggle-slider"></span>
</label>
</div>
<div class="setting-item">
<div class="setting-info">
<div class="setting-name">Auto-Detection</div>
<div class="setting-description">Automatically scan websites when opening the extension</div>
</div>
<label class="toggle-switch">
<input type="checkbox" id="autoDetectToggle" checked>
<span class="toggle-slider"></span>
</label>
</div>
</div>
<div class="settings-section">
<h2 class="section-title">📊 Detection Settings</h2>
<div class="setting-item">
<div class="setting-info">
<div class="setting-name">Default Sort Order</div>
<div class="setting-description">How technologies are sorted by default</div>
</div>
<div class="select-setting">
<select id="defaultSort">
<option value="confidence">By Confidence</option>
<option value="name">By Name</option>
<option value="category">By Category</option>
</select>
</div>
</div>
<div class="setting-item">
<div class="setting-info">
<div class="setting-name">Show Evidence by Default</div>
<div class="setting-description">Display detection evidence when results load</div>
</div>
<label class="toggle-switch">
<input type="checkbox" id="showEvidenceToggle" checked>
<span class="toggle-slider"></span>
</label>
</div>
<div class="setting-item">
<div class="setting-info">
<div class="setting-name">Minimum Confidence Threshold</div>
<div class="setting-description">Only show technologies above this confidence level</div>
</div>
<div class="select-setting">
<select id="confidenceThreshold">
<option value="0">Show All (0%)</option>
<option value="50">Medium (50%)</option>
<option value="70">High (70%)</option>
<option value="85">Very High (85%)</option>
</select>
</div>
</div>
</div>
<div class="settings-section">
<h2 class="section-title">🔧 Advanced</h2>
<div class="setting-item">
<div class="setting-info">
<div class="setting-name">Debug Mode</div>
<div class="setting-description">Show detailed console logs for troubleshooting (not implemented yet)</div>
</div>
<label class="toggle-switch">
<input type="checkbox" id="debugModeToggle">
<span class="toggle-slider"></span>
</label>
</div>
<div class="setting-item">
<div class="setting-info">
<div class="setting-name">Cache Results</div>
<div class="setting-description">Remember results for recently visited pages (not implemented yet)</div>
</div>
<label class="toggle-switch">
<input type="checkbox" id="cacheResultsToggle" checked>
<span class="toggle-slider"></span>
</label>
</div>
</div>
<div style="text-align: center;">
<button class="save-button" id="saveButton">💾 Save Settings</button>
<button class="reset-button" id="resetButton">🔄 Reset to Defaults</button>
</div>
</div>
<div class="notification" id="notification">
Settings saved successfully!
</div>
<div class="footer">
<p>
<strong>StackScope</strong> •
<a href="https://kreggscode.github.io/stackscope/" target="_blank">Website</a> •
<a href="https://github.com/kreggscode/stackscope" target="_blank">GitHub</a> •
<a href="https://kreggscode.github.io/stackscope/privacy.html" target="_blank">Privacy</a>
</p>
<p style="margin-top: 8px; font-size: 0.9rem;">
Made with ❤️ by kreggscode
</p>
</div>
<script src="options.js"></script>
</body>
</html>