-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoptions.html
100 lines (96 loc) · 3.03 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
<!DOCTYPE html>
<html>
<head>
<title>Video Speed Controller Settings</title>
<style>
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
max-width: 800px;
margin: 20px auto;
padding: 20px;
}
.section {
margin-bottom: 30px;
}
textarea {
width: 100%;
min-height: 100px;
margin-bottom: 10px;
}
#status {
color: green;
opacity: 0;
transition: opacity 0.3s;
}
.shortcut-row {
display: flex;
align-items: center;
margin-bottom: 10px;
gap: 10px;
}
.shortcut-input {
width: 100px;
padding: 5px;
}
.shortcut-label {
min-width: 150px;
}
.checkbox-row {
margin: 10px 0;
}
.hint {
color: #666;
font-size: 0.9em;
margin-top: 5px;
}
</style>
</head>
<body>
<h2>Video Speed Controller Settings</h2>
<div class="section">
<h3>Speed Presets</h3>
<textarea id="speedList" placeholder="Enter speeds, one per line (e.g. 0.5, 1, 1.5, 2)"></textarea>
<div class="hint">These speeds will be available when using speed up/down shortcuts</div>
</div>
<div class="section">
<h3>Keyboard Shortcuts</h3>
<div class="shortcut-row">
<span class="shortcut-label">Speed Up:</span>
<input type="text" class="shortcut-input" id="shortcutSpeedUp" placeholder="e.g. d">
</div>
<div class="shortcut-row">
<span class="shortcut-label">Speed Down:</span>
<input type="text" class="shortcut-input" id="shortcutSpeedDown" placeholder="e.g. s">
</div>
<div class="shortcut-row">
<span class="shortcut-label">Reset to Normal (1x):</span>
<input type="text" class="shortcut-input" id="shortcutReset" placeholder="e.g. r">
</div>
<div class="checkbox-row">
<label>
<input type="checkbox" id="enableNumberShortcuts">
Enable number keys (1-9) to jump directly to speeds
</label>
<div class="hint">Numbers 1-9 will map to your speed presets in order</div>
</div>
</div>
<div class="section">
<h3>Interface Options</h3>
<div class="checkbox-row">
<label>
<input type="checkbox" id="showSpeedButtons">
Show speed-up/slow-down buttons
</label>
</div>
<div class="checkbox-row">
<label>
<input type="checkbox" id="showShortcutHints">
Show keyboard shortcuts on buttons
</label>
</div>
</div>
<div id="status">Changes saved</div>
<div id="version" style="margin-top: 20px; color: #666; font-size: 12px;"></div>
<script src="options.js"></script>
</body>
</html>