Repository navigation
Expand file tree
/
Copy pathoptions.html
More file actions
152 lines (133 loc) · 5.38 KB
/
Copy pathoptions.html
File metadata and controls
152 lines (133 loc) · 5.38 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Peekaboo — Settings</title>
<link rel="stylesheet" href="options.css">
</head>
<body>
<div class="page">
<header class="page-header">
<div class="logo">
<svg width="26" height="26" viewBox="0 0 24 24" fill="none">
<circle cx="12" cy="12" r="11" fill="#ff0000"/>
<polygon points="10,8 17,12 10,16" fill="white"/>
<rect x="4" y="18.5" width="16" height="2" rx="1" fill="white" opacity="0.6"/>
<rect x="4" y="18.5" width="9" height="2" rx="1" fill="white"/>
</svg>
<div>
<div class="logo-title">Peekaboo</div>
<div class="logo-sub">Settings</div>
</div>
</div>
<div id="saveStatus" class="save-status hidden">Saved</div>
</header>
<main class="content">
<section class="section">
<div class="section-title">Playback</div>
<div class="field">
<div class="field-label">
<span>Auto-resume videos</span>
<span class="field-desc">Jump to your last position when you open a video</span>
</div>
<label class="toggle">
<input type="checkbox" id="autoResume">
<span class="slider"></span>
</label>
</div>
<div class="field">
<div class="field-label">
<span>Save interval</span>
<span class="field-desc">How often to record your position (seconds)</span>
</div>
<div class="slider-wrap">
<input type="range" id="saveInterval" min="3" max="30" step="1">
<span class="slider-val" id="saveIntervalVal">5s</span>
</div>
</div>
<div class="field">
<div class="field-label">
<span>Resume seek-back</span>
<span class="field-desc">Seconds to rewind when resuming so you don't miss anything</span>
</div>
<div class="slider-wrap">
<input type="range" id="resumeOffset" min="0" max="30" step="1">
<span class="slider-val" id="resumeOffsetVal">5s</span>
</div>
</div>
<div class="field">
<div class="field-label">
<span>Remember playback speed</span>
<span class="field-desc">Restore your preferred speed per video</span>
</div>
<label class="toggle">
<input type="checkbox" id="speedMemory">
<span class="slider"></span>
</label>
</div>
</section>
<section class="section">
<div class="section-title">Notifications</div>
<div class="field">
<div class="field-label">
<span>Show save toasts</span>
<span class="field-desc">Brief pop-ups confirming your progress was saved</span>
</div>
<label class="toggle">
<input type="checkbox" id="toastEnabled">
<span class="slider"></span>
</label>
</div>
</section>
<section class="section">
<div class="section-title">Blacklist</div>
<p class="section-desc">Paste a video URL, channel URL, or any keyword — one per line. Videos matching any entry will be ignored.</p>
<textarea id="blacklist" rows="5" placeholder="https://www.youtube.com/@SomeChannel short-clips /shorts/"></textarea>
</section>
<section class="section">
<div class="section-title">Data</div>
<div class="storage-info">
<div class="storage-label">Storage used</div>
<div class="storage-bar-wrap">
<div class="storage-bar">
<div class="storage-bar-fill" id="storageFill" style="width:0%"></div>
</div>
<span class="storage-text" id="storageText">Calculating…</span>
</div>
</div>
<div class="data-actions">
<button class="btn btn-ghost" id="exportBtn">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/>
<polyline points="7 10 12 15 17 10"/>
<line x1="12" y1="15" x2="12" y2="3"/>
</svg>
Export JSON
</button>
<button class="btn btn-ghost" id="importBtn">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/>
<polyline points="7 10 12 15 17 10"/>
<line x1="12" y1="15" x2="12" y2="3"/>
</svg>
Import JSON
</button>
<input type="file" id="importFile" accept=".json" style="display:none">
<button class="btn btn-danger" id="clearBtn">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<polyline points="3 6 5 6 21 6"/>
<path d="M19 6l-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6"/>
<path d="M10 11v6"/><path d="M14 11v6"/>
<path d="M9 6V4h6v2"/>
</svg>
Clear All Data
</button>
</div>
</section>
</main>
</div>
<div id="toast" class="options-toast hidden"></div>
<script src="options.js"></script>
</body>
</html>