-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoptions.html
More file actions
153 lines (144 loc) · 5.21 KB
/
options.html
File metadata and controls
153 lines (144 loc) · 5.21 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
<!DOCTYPE html>
<html>
<head>
<title>LoopControl: Options</title>
<link rel="stylesheet" href="options.css" />
<script src="options.js"></script>
</head>
<body>
<header>
<h1>LoopControl</h1>
</header>
<section id="customs">
<h3>Shortcuts</h3>
<div class="row customs" id="toggle-controller">
<select class="customDo">
<option value="toggle-controller">Show/Hide Controller</option>
</select>
<input
class="customKey"
type="text"
value=""
placeholder="press a key"
/>
<select class="customForce experimental">
<option value="false">Do not override website key bindings</option>
<option value="true">Override website key bindings</option>
</select>
</div>
<div class="row customs" id="set-start">
<select class="customDo">
<option value="set-start">Set Loop Start</option>
</select>
<input
class="customKey"
type="text"
value=""
placeholder="press a key"
/>
<select class="customForce experimental">
<option value="false">Do not override website key bindings</option>
<option value="true">Override website key bindings</option>
</select>
</div>
<div class="row customs" id="set-end">
<select class="customDo">
<option value="set-end">Set Loop End</option>
</select>
<input
class="customKey"
type="text"
value=""
placeholder="press a key"
/>
<select class="customForce experimental">
<option value="false">Do not override website key bindings</option>
<option value="true">Override website key bindings</option>
</select>
</div>
<div class="row customs" id="toggle-loop">
<select class="customDo">
<option value="toggle-loop">Toggle Loop Start/Stop</option>
</select>
<input
class="customKey"
type="text"
value=""
placeholder="press a key"
/>
<select class="customForce experimental">
<option value="false">Do not override website key bindings</option>
<option value="true">Override website key bindings</option>
</select>
</div>
<!-- <button id="add">Add New</button> --> <!-- For additional settings in the future-->
</section>
<section>
<h3>Other</h3>
<div class="row">
<label for="enabled">Enable</label>
<input id="enabled" type="checkbox" />
</div>
<div class="row">
<label for="startHidden">Hide controller by default</label>
<input id="startHidden" type="checkbox" />
</div>
<!-- <div class="row">
<label for="loopEverything">Loop Everything</label>
<input id="loopEverything" type="checkbox" />
</div> -->
<div class="row">
<label for="audioEnabled">Work on audio</label>
<input id="audioEnabled" type="checkbox" />
</div>
<div class="row">
<label for="inSeconds">Use Seconds for Time Labels<br />
<em>The controller can either display loop times in seconds (e.g. 90) or in the format MM:SS (e.g. 01:30).</em></label>
<input id="inSeconds" type="checkbox" />
</div>
<div class="row">
<label for="controllerOpacity">Controller opacity</label>
<input id="controllerOpacity" type="text" value="" />
</div>
<div class="row">
<label for="blacklist"
>Sites on which extension is disabled<br />
(one per line)<br />
<br />
<em>
<a href="https://www.regexpal.com/">Regex</a> is supported.<br />
Be sure to use the literal notation.<br />
ie: /(.+)youtube\.com(\/*)$/gi
</em>
</label>
<textarea id="blacklist" rows="10" cols="50"></textarea>
</div>
<div class="row experimental">
<label for="loggingLevel">Debugging Messages</label>
<select id="loggingLevel" class="">
<option value="0">0 - None</option>
<option value="1">1 - Errors</option>
<option value="2" selected>2 - Warnings</option>
<option value="3">3 - Info</option>
<option value="4">4 - Full Debugging Messages</option>
</select>
</div>
<div class="row experimental">
<label for="offset-x">Offset X:</label>
<p>The number in px to offset the video controller from its default location along the x-axis</p>
<input type="range" id="offset-x" value="0" min="-50" max="50"></input>
<span id="offset-x-label">0</span>
</div>
<div class="row experimental">
<label for="">Offset Y:</label>
<p>The number in px to offset the video controller from its default location along the y-axis</p>
<input type="range" id="offset-y" value="0" min="-50" max="50"></input>
<span id="offset-y-label">0</span>
</div>
</section>
<button id="save">Save</button>
<button id="restore">Restore Defaults</button>
<button id="experimental">Show/Hide Experimental Features</button>
<div id="status"></div>
</body>
</html>