forked from ichinchiou/video_bookmarker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
options.html
202 lines (168 loc) · 5.4 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
<!DOCTYPE html>
<html>
<head>
<title>Options</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="libs/jquery-3.3.1.min.js"></script>
<link rel="stylesheet" href="libs/pure-min.css"/>
<link rel="stylesheet" href="libs/pure-grids-responsive-min.css"/>
<link rel="stylesheet" href="libs/solid.css"/>
<link rel="stylesheet" href="libs/fontawesome.css"/>
<style>
body {
margin: 0;
margin-bottom: 20px;
padding-left: 15px;
padding-top: 0px;
font-family: sans-serif;
font-size: 12px;
color: rgb(48, 57, 66);
}
h1, h2, h3 {
font-weight: normal;
line-height: 1;
user-select: none;
cursor: default;
}
h1 {
font-size: 1.5em;
margin: 21px 0 13px;
}
h3 {
font-size: 1.2em;
margin-bottom: 0.8em;
color: black;
}
p {
margin: 0.65em 0;
}
header {
position: fixed;
top: 0;
left: 15px;
right: 0;
border-bottom: 1px solid #EEE;
background: linear-gradient(white, white 40%, rgba(255, 255, 255, 0.92));
}
header, section {
min-width: 600px;
max-width: 738px;
}
.listtable {
text-align: left;
line-height: 40px;
border-collapse: separate;
border-spacing: 0;
border: 2px solid #3883fa;
width: 80%;
margin: 10px 0;
border-radius: .25rem;
}
.listtable thead tr:first-child {
background: #3883fa;
color: #fff;
border: none;
}
.listtable th:first-child,
.listtable td:first-child {
padding: 0 15px 0 20px;
}
.listtable thead tr:last-child th {
border-bottom: 3px solid #ddd;
}
.listtable tbody tr:hover {
background-color: #f2f2f2;
cursor: default;
}
.listtable tbody tr:last-child td {
border: none;
}
.listtable tbody td {
border-bottom: 1px solid #ddd;
}
.button-success,
.button-error,
.button-warning,
.button-secondary {
color: white;
border-radius: 4px;
text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}
.button-success {
background: rgb(28, 184, 65); /* this is a green */
}
.button-error {
background: rgb(202, 60, 60); /* this is a maroon */
}
.button-warning {
background: rgb(223, 117, 20); /* this is an orange */
}
.button-secondary {
background: rgb(66, 184, 221); /* this is a light blue */
}
</style>
</head>
<body>
<form class="pure-form pure-form-aligned">
<fieldset>
<h2>Video Bookmarker</h2>
<hr>
<h3>Shortcuts</h3>
<div class="pure-control-group">
<label for="addBookmark">add bookmarks</label>
<input id="addBookmark" class="keyBinding" placeholder="press a key" type="text" value="">
</div>
<div class="pure-control-group">
<label for="jumpToPrevBookmark">jump to prev bookmark</label>
<input id="jumpToPrevBookmark" class="keyBinding" placeholder="press a key" type="text" value="">
</div>
<div class="pure-control-group">
<label for="jumpToNextBookmark">jump to next bookmark</label>
<input id="jumpToNextBookmark" class="keyBinding" placeholder="press a key" type="text" value="">
</div>
<div class="pure-control-group">
<label>remove bookmark or AB repeat</label>
<span>Double click bookmark</span>
</div>
<div class="pure-control-group">
<label for="setRepeatStart">AB Repeat start time</label>
<input id="setRepeatStart" class="keyBinding" placeholder="press a key" type="text" value="">
</div>
<div class="pure-control-group">
<label for="setRepeatEnd">AB Repeat end time</label>
<input id="setRepeatEnd" class="keyBinding" placeholder="press a key" type="text" value="">
</div>
<div class="pure-control-group">
<label for="faster">speed up</label>
<input id="faster" class="keyBinding" placeholder="press a key" type="text" value="">
</div>
<div class="pure-control-group">
<label for="slower">slow down</label>
<input id="slower" class="keyBinding" placeholder="press a key" type="text" value="">
</div>
<div class="pure-control-group">
<label for="loop">repeat playback</label>
<input id="loop" class="keyBinding" placeholder="press a key" type="text" value="">
</div>
<div class="pure-control-group">
<label for="hide">hide bookmarks</label>
<input id="hide" class="keyBinding" placeholder="press a key" type="text" value="">
</div>
<h3>Options</h3>
<div class="pure-control-group">
<label for="latency">latency after switching bookmark(second)</label>
<input id="latency" type="text" value="">
</div>
<div class="pure-control-group">
<label for="saveOptionsBtn"></label>
<button id="saveOptionsBtn" class="pure-button pure-button-primary"><i class="fas fa-save"></i> Save</button>
<button id="bookmarksBtn" class="pure-button"><i class="fas fa-tags"></i> Bookmarks Management</button>
</div>
<hr>
<p>This extension is only compatible with HTML5 video. <br>Bookmarks and AB repeat marks are currently visible on progress bar in Youtube, Vimeo, bilibili and niconico.</p>
</fieldset>
</form>
<script src="options.js"></script>
</body>
</html>