forked from kalpit-S/smart-video-speed-chrome
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoptions.html
248 lines (248 loc) · 6.89 KB
/
options.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
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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Smart Video Speed Controller Options</title>
<link
href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600&display=swap"
rel="stylesheet"
/>
<style>
body {
background-color: #f7f9fc;
color: #333;
font-family: "Open Sans", sans-serif;
padding: 20px;
line-height: 1.6;
}
.form-section {
background: #ffffff;
padding: 20px;
border-radius: 8px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
margin-bottom: 20px;
}
h2 {
font-weight: 600;
color: #2c3e50;
}
label {
display: block;
margin: 15px 0 5px;
font-weight: 400;
}
input[type="number"],
button {
width: 100%;
padding: 15px;
border: 1px solid #dfe4ea;
border-radius: 4px;
font-size: 14px;
box-sizing: border-box;
}
input[type="number"] {
background-color: #f7f9fc;
margin-bottom: 10px;
}
input[type="checkbox"] {
margin-right: 10px;
}
button {
background-color: #4caf50;
color: white;
font-weight: 600;
margin-top: 10px;
border: none;
}
button:hover {
background-color: #45a049;
}
.tooltip {
cursor: help;
position: relative;
display: inline-block;
}
.tooltip .tooltiptext {
visibility: hidden;
background-color: #555;
color: #fff;
text-align: center;
border-radius: 6px;
padding: 5px;
position: absolute;
z-index: 1;
bottom: -35px;
left: 50%;
margin-left: -60px;
opacity: 0;
transition: opacity 0.3s;
font-size: 12px;
line-height: 1.4;
}
.tooltip:hover .tooltiptext {
visibility: visible;
opacity: 0.9;
}
#settings-form {
max-width: 600px;
margin: 30px auto;
}
</style>
</head>
<body>
<form id="settings-form">
<div class="form-section">
<h2>Keyboard Shortcuts</h2>
<p>
<strong>Increase Video Speed:</strong> Ctrl + Shift + Period
(Windows/Linux), Command + Shift + Period (Mac)
</p>
<p>
<strong>Decrease Video Speed:</strong> Ctrl + Shift + Comma
(Windows/Linux), Command + Shift + Comma (Mac)
</p>
<p>
<strong>Activate Dynamic Speed:</strong> Ctrl + Shift + Y
(Windows/Linux), Command + Shift + Y (Mac)
</p>
<p>
<strong>Set preset shortcuts here: </strong>
<a href="chrome://extensions/shortcuts" target="_blank"
>chrome://extensions/shortcuts</a
>
</p>
</div>
<div class="form-section">
<label for="useWPMbyDefault"
>Apply Target Words Per Minute Speed on Page Load (Overrides Default
Speed):</label
>
<span class="tooltip"
>ℹ
<span class="tooltiptext"
>Enabling this will auto-open the video's transcript and adjust
playback speed to match your target WPM.</span
>
</span>
<input type="checkbox" id="useWPMbyDefault" name="useWPMbyDefault" />
</div>
<div class="form-section">
<label for="targetWPM">Target Words Per Minute:</label>
<span class="tooltip"
>ℹ
<span class="tooltiptext"
>Set your preferred listening speed. Average talking speed is ~150
WPM.</span
>
</span>
<input type="number" id="targetWPM" name="targetWPM" min="20" />
</div>
<div class="form-section">
<label for="defaultSpeed">Default Speed:</label>
<span class="tooltip"
>ℹ
<span class="tooltiptext">Initial playback speed for videos.</span>
</span>
<input
type="number"
id="defaultSpeed"
name="defaultSpeed"
min="0.1"
step="0.1"
/>
</div>
<div class="form-section">
<label for="incrementAmount"
>Adjustment step size for video speed changes.:</label
>
<span class="tooltip"
>ℹ
<span class="tooltiptext"
>Determines the amount by which the video speed increases or
decreases when you adjust it.</span
>
</span>
<input
type="number"
id="incrementAmount"
name="incrementAmount"
min="0.1"
step="0.01"
/>
</div>
<div class="form-section">
<label for="preset_speed_1">Preset Speed 1:</label>
<span class="tooltip"
>ℹ
<span class="tooltiptext"
>Custom preset for quick selection of a specific playback speed. Set
this to your commonly used speed for easy access.</span
>
</span>
<input
type="number"
id="preset_speed_1"
name="preset_speed_1"
min="0.1"
step="0.01"
/>
</div>
<div class="form-section">
<label for="preset_speed_2">Preset Speed 2:</label>
<span class="tooltip"
>ℹ
<span class="tooltiptext"
>Custom preset for quick selection of a specific playback speed. Set
this to your commonly used speed for easy access.</span
>
</span>
<input
type="number"
id="preset_speed_2"
name="preset_speed_2"
min="0.1"
step="0.01"
/>
</div>
<div class="form-section">
<label for="preset_speed_3">Preset Speed 3:</label>
<span class="tooltip"
>ℹ
<span class="tooltiptext"
>Custom preset for quick selection of a specific playback speed. Set
this to your commonly used speed for easy access.</span
>
</span>
<input
type="number"
id="preset_speed_3"
name="preset_speed_3"
min="0.1"
step="0.01"
/>
</div>
<div class="form-section">
<label for="transcriptSeconds"
>Duration of Transcript Used to Calculate Video WPM (in
seconds):</label
>
<span class="tooltip"
>ℹ
<span class="tooltiptext"
>Duration (in seconds) from the start of the transcript used for
calculating WPM. The first minute usually has uninterrupted talking,
so that's why it's the default.</span
>
</span>
<input
type="number"
id="transcriptSeconds"
name="transcriptSeconds"
min="20"
/>
</div>
<button type="submit">Save</button>
</form>
<script src="options.js"></script>
</body>
</html>