-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoverlay.html
More file actions
273 lines (252 loc) · 13.1 KB
/
overlay.html
File metadata and controls
273 lines (252 loc) · 13.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
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
<div id="yt-time-manager-container">
<!-- Header -->
<div class="dt-header">
<div class="dt-speed-wrapper">
<div class="dt-speed-control">
<span id="dt-speed-down" class="dt-speed-btn">−</span>
<span id="dt-speed-val">1.0x</span>
<span id="dt-speed-up" class="dt-speed-btn">+</span>
</div>
</div>
<div class="dt-flip-clock-container">
<div class="dt-flip-clock" id="dt-flip-clock">
<!-- Injected by JS -->
</div>
</div>
<div class="dt-settings-icon" id="dt-settings-btn">
<!-- Settings Icon -->
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="3"></circle><path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"></path></svg>
</div>
</div>
<div id="dt-settings-panel" class="dt-settings-panel hidden">
<h3 class="dt-settings-title">Settings</h3>
<!-- Display Settings Section -->
<div class="dt-settings-section">
<div class="dt-settings-section">
<div class="dt-settings-section-title">Time Format</div>
<div class="dt-setting-row">
<span>24-Hour Clock</span>
<label class="dt-toggle-switch">
<input type="checkbox" id="dt-24h-toggle">
<span class="dt-slider"></span>
</label>
</div>
</div>
<!-- Appearance Section -->
<div class="dt-settings-section">
<div class="dt-settings-section-title">Appearance</div>
<div class="dt-setting-row">
<span>Solid Background (Use with Light Theme)</span>
<label class="dt-toggle-switch">
<input type="checkbox" id="dt-toggle-solid-bg">
<span class="dt-slider"></span>
</label>
</div>
</div>
<div class="dt-settings-section-title">Display Options</div>
<div class="dt-setting-row">
<span>Show Video Card</span>
<label class="dt-toggle-switch">
<input type="checkbox" id="dt-toggle-video-card" checked>
<span class="dt-slider"></span>
</label>
</div>
<div class="dt-setting-row">
<span>Show Chapter Card</span>
<label class="dt-toggle-switch">
<input type="checkbox" id="dt-toggle-chapter-card" checked>
<span class="dt-slider"></span>
</label>
</div>
<div class="dt-setting-row">
<span>Show Playlist Card</span>
<label class="dt-toggle-switch">
<input type="checkbox" id="dt-toggle-playlist-card" checked>
<span class="dt-slider"></span>
</label>
</div>
</div>
</div>
<!-- Video Section -->
<div id="dt-video-section" class="dt-section-card">
<div class="dt-section-header dt-color-video">
<span class="dt-icon">
<!-- Video Icon -->
<!-- Video Icon (YouTube Logo) -->
<svg viewBox="0 0 24 24" fill="currentColor"><path d="M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z"/></svg>
</span>
<span>Video</span>
<div class="dt-progress-track">
<div id="dt-video-progress" class="dt-progress-fill dt-bg-video"></div>
</div>
</div>
<div class="dt-stats-row">
<div class="dt-stat-box">
<span class="dt-stat-label">Time Remaining:</span>
<span id="dt-video-remaining" class="dt-stat-value">--:--</span>
</div>
<div class="dt-stat-box">
<span class="dt-stat-label">Finishing At:</span>
<span id="dt-video-finish" class="dt-stat-value">--:--</span>
</div>
</div>
<div class="dt-details-panel">
<div class="dt-detail-header">
<span>Time Remaining</span>
<span>Speed</span>
<span>Finishing At</span>
</div>
<div id="dt-video-details-list" class="dt-detail-list"></div>
<!-- Custom Target Section -->
<div class="dt-custom-target-row">
<!-- Duration Input (Aligned with Time Remaining) -->
<div class="dt-custom-col">
<div class="dt-split-inputs" id="dt-video-custom-duration-container">
<input type="text" class="dt-ghost-input dt-time-input" data-unit="h" placeholder="00">
<span class="dt-sep">:</span>
<input type="text" class="dt-ghost-input dt-time-input" data-unit="m" placeholder="00">
</div>
</div>
<!-- Speed Input (Aligned with Speed) -->
<div class="dt-custom-col">
<input type="number" id="dt-video-custom-speed" class="dt-ghost-input dt-speed-input" placeholder="Speed" step="0.1" min="0.1" max="16">
</div>
<!-- Finish At Input (Aligned with Finishing At) -->
<div class="dt-custom-col">
<div class="dt-split-inputs" id="dt-video-custom-finish-container">
<input type="text" class="dt-ghost-input dt-time-input" data-unit="h" placeholder="12">
<span class="dt-sep">:</span>
<input type="text" class="dt-ghost-input dt-time-input" data-unit="m" placeholder="00">
<select class="dt-ghost-select dt-ampm-select">
<option value="AM">AM</option>
<option value="PM">PM</option>
</select>
</div>
</div>
</div>
</div>
</div>
<!-- Chapter Section -->
<div id="dt-chapter-section" class="dt-section-card hidden">
<div class="dt-section-header dt-color-chapter">
<span class="dt-icon">
<!-- Chapter Icon -->
<!-- Chapter Icon (Bookmark) -->
<svg viewBox="0 0 24 24" fill="currentColor"><path d="M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2z"/></svg>
</span>
<span id="dt-chapter-name">Chapter</span>
<div class="dt-progress-track">
<div id="dt-chapter-progress" class="dt-progress-fill dt-bg-chapter"></div>
</div>
</div>
<div class="dt-stats-row">
<div class="dt-stat-box">
<span class="dt-stat-label">Time Remaining:</span>
<span id="dt-chapter-remaining" class="dt-stat-value">--:--</span>
</div>
<div class="dt-stat-box">
<span class="dt-stat-label">Finishing At:</span>
<span id="dt-chapter-finish" class="dt-stat-value">--:--</span>
</div>
</div>
<div class="dt-details-panel">
<div class="dt-detail-header">
<span>Time Remaining</span>
<span>Speed</span>
<span>Finishing At</span>
</div>
<div id="dt-chapter-details-list" class="dt-detail-list"></div>
<!-- Custom Target Section -->
<div class="dt-custom-target-row">
<!-- Duration Input -->
<div class="dt-custom-col">
<div class="dt-split-inputs" id="dt-chapter-custom-duration-container">
<input type="text" class="dt-ghost-input dt-time-input" data-unit="h" placeholder="00">
<span class="dt-sep">:</span>
<input type="text" class="dt-ghost-input dt-time-input" data-unit="m" placeholder="00">
</div>
</div>
<!-- Speed Input -->
<div class="dt-custom-col">
<input type="number" id="dt-chapter-custom-speed" class="dt-ghost-input dt-speed-input" placeholder="Speed" step="0.1" min="0.1" max="16">
</div>
<!-- Finish At Input -->
<div class="dt-custom-col">
<div class="dt-split-inputs" id="dt-chapter-custom-finish-container">
<input type="text" class="dt-ghost-input dt-time-input" data-unit="h" placeholder="12">
<span class="dt-sep">:</span>
<input type="text" class="dt-ghost-input dt-time-input" data-unit="m" placeholder="00">
<select class="dt-ghost-select dt-ampm-select">
<option value="AM">AM</option>
<option value="PM">PM</option>
</select>
</div>
</div>
</div>
</div>
</div>
<!-- Playlist Section -->
<div id="dt-playlist-section" class="dt-section-card hidden">
<div class="dt-section-header dt-color-playlist">
<span class="dt-icon">
<!-- Playlist Icon -->
<!-- Playlist Icon (Queue) -->
<svg viewBox="0 0 24 24" fill="currentColor"><path d="M19 9H2v2h17V9zm0-4H2v2h17V5zM2 15h13v-2H2v2zm15-2v6l5-3-5-3z"/></svg>
</span>
<span>Playlist</span>
<div class="dt-progress-track">
<div id="dt-playlist-progress" class="dt-progress-fill dt-bg-playlist"></div>
</div>
</div>
<div class="dt-stats-row">
<div class="dt-stat-box">
<span class="dt-stat-label">Time Remaining:</span>
<span id="dt-playlist-remaining" class="dt-stat-value">--:--</span>
</div>
<div class="dt-stat-box">
<span class="dt-stat-label">Finishing At:</span>
<span id="dt-playlist-finish" class="dt-stat-value">--:--</span>
</div>
</div>
<div class="dt-details-panel">
<div class="dt-playlist-controls">
<span>Playlist Limit:</span>
<div class="dt-input-wrapper">
<input type="number" id="dt-playlist-target-input" min="1" class="dt-playlist-input">
<span id="dt-playlist-total-count" class="dt-playlist-total">/ --</span>
</div>
</div>
<div class="dt-detail-header">
<span>Time Remaining</span>
<span>Speed</span>
<span>Finishing At</span>
</div>
<div id="dt-playlist-details-list" class="dt-detail-list"></div>
<!-- Custom Target Section -->
<div class="dt-custom-target-row">
<!-- Duration Input -->
<div class="dt-custom-col">
<div class="dt-split-inputs" id="dt-playlist-custom-duration-container">
<input type="text" class="dt-ghost-input dt-time-input" data-unit="h" placeholder="00">
<span class="dt-sep">:</span>
<input type="text" class="dt-ghost-input dt-time-input" data-unit="m" placeholder="00">
</div>
</div>
<!-- Speed Input -->
<div class="dt-custom-col">
<input type="number" id="dt-playlist-custom-speed" class="dt-ghost-input dt-speed-input" placeholder="Speed" step="0.1" min="0.1" max="16">
</div>
<!-- Finish At Input -->
<div class="dt-custom-col">
<div class="dt-split-inputs" id="dt-playlist-custom-finish-container">
<input type="text" class="dt-ghost-input dt-time-input" data-unit="h" placeholder="12">
<span class="dt-sep">:</span>
<input type="text" class="dt-ghost-input dt-time-input" data-unit="m" placeholder="00">
<select class="dt-ghost-select dt-ampm-select">
<option value="AM">AM</option>
<option value="PM">PM</option>
</select>
</div>
</div>
</div>
</div>