-
Notifications
You must be signed in to change notification settings - Fork 0
/
interface.htm
208 lines (185 loc) · 5.95 KB
/
interface.htm
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Video Shot Annotator</title>
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
<script src="js/timeline.js"></script>
<script src="js/timeline_widget.js"></script>
<script src="js/props_widget.js"></script>
<script src="js/video_widget.js"></script>
<script src="js/annotation.js"></script>
<script src="js/soft_alert.js"></script>
<link rel="stylesheet" type="text/css" href="css/timeline.css"></link>
<link rel="stylesheet" type="text/css" href="css/video.css"></link>
<link rel="stylesheet" type="text/css" href="css/jet.css"></link>
<link rel="stylesheet" type="text/css" href="css/am.css"></link>
<link rel='stylesheet' type='text/css' href='css/shots.css'></link>
<script src="js/interface.js"></script>
</head>
<body>
<h3 id="loading">Loading...</h3>
<!-- Top buttons -->
<button type="button" onclick="save_to_textbox(event)" title="Shows the annotation file in the bottom of the page">
Save
</button>
<button type="button" onclick="save_infos(event)" disabled title="Not available">
Save to server
</button>
<button type="button" onclick="revert_infos(event)">
Revert to server version
</button>
<!-- <a href="https://github.com/...">Instructions</a> -->
<a href="javascript:void()" onclick="help()">Help</a>
<button type="button" onclick="showPermanentLink(event)" >
Show permanent link
</button>
<span id="perm_link"></span>
<span style="float:right">
<b> Zoom level </b>
<button onclick="setZoomLevel('subshot', event)" title="10 sec">
Subshot
</button>
<button onclick="setZoomLevel('shot', event)" title="1 min">
Shot
</button>
<button onclick="setZoomLevel('scene', event)" title="10 min">
Scene
</button>
<button onclick="setZoomLevel('video', event)" title="100 min">
Video
</button>
</span>
<div id="help" style="display:none">
<table width="50%"><tr><td>
<h3>Keyboard shortcuts</h3>
left / right - navigate the video while paused <br/>
space - play/pause<br/>
A / D - previous/next segment <br/>
1,2 - start segment of importance 1 or 2 <br/>
Enter - finish segment<br/>
delete - clear the current category in the current shot<br/>
+/- - increase/decrease playback rate <br/>
H - toggle "hardness",<br/>
O / P - previous / next occurrence
</td></tr></table>
</div>
<div id="timeline"></div>
<!-- Video properties -->
<table width="100%">
<tr>
<td width="20%" valign="top" style="padding:10px">
<b align="left">Video Properties</b>
<br/>
<div class="commentbox"
style="width:100%; height=100%; overflow:auto"
onclick="editVideoComment(event)"
title="freeform">
<span id="video_comment"></span>
<br/>
<i style="color:gray"> Video comment </i>
</div>
</td>
<td width="80%" align="center">
<div id="video"></div>
</td>
</tr>
</table>
<!-- Control panel -->
<div align="center" id="control_panel">
<button type="button" onclick="insertSceneChange(event)" class="mybutton">
Begin Scene
</button>
<img onclick="removeSceneChange(event)"
src="css/img/deleteEvent.png" title="Remove scene change" width="26px" height="26px" class="mycross">
</img>
<span style="display: inline-block; height=40px" class="framedbox">
<button type="button" onclick="prevSegment(event)" class="mybutton">
<<< Previous shot
</button>
<button type="button" onclick="nextSegment(event)" class="mybutton">
Next shot >>>
</button>
</span>
<span style="display: inline-block; height=40px" class="framedbox">
Playback speed
<button id="x1" type="button" onclick="setSpeed(1)" class="mybutton">
Normal
</button>
<button id="x2" type="button" onclick="setSpeed(2)" class="mybutton">
Faster
</button>
<button id="x4" type="button" onclick="setSpeed(4)" class="mybutton">
Very fast
</button>
</span>
<span style="display: inline-block; height=40px" class="framedbox">
<button type="button" onclick="prevOccurence(event)" class="mybutton">
<<< Previous occurence
</button>
<button type="button" onclick="nextOccurence(event)" class="mybutton">
Next occurence >>>
</button>
</span>
</div>
<!-- Scene properties -->
<div class="framedbox" style="display:none">
<table width="100%"><tr>
<td width="20%" valign="top" style="padding:10px">
<b align="left">Scene Properties + (dialog/action/mood)</b>
<br/>
<i> Multilocation scene </i>
<input type="checkbox" id="multilocation"
onchange="setMultilocation(event)">
</input>
<br/>
<div class="commentbox"
style="width:100%; overflow:auto"
onclick="editSceneComment(event)"
title="who? where?"
>
<span id="scene_comment"></span>
<br/>
<i style="color:gray"> Scene comment </i>
</div>
</td>
<td width="80%" align="center">
<span id="scene_props"></span>
</td>
</tr></table>
</div>
<!-- Shot properties -->
<div class="framedbox">
<table width="100%"><tr>
<td width="20%" valign="top" style="padding:10px">
<b align="left">Shot Properties</b>
<br/>
<div class="commentbox"
style="width:100%; overflow:auto"
onclick="editShotComment(event)"
title="freeform">
<span id="shot_comment" style="background-color:yellow"></span>
<br/>
<i style="color:gray"> Shot comment </i>
</div>
</td>
<td width="80%" align="center">
<div id="shot_props" align="center">
</div>
</td>
</tr></table>
</div>
<!-- Annotation file -->
<div class="framedbox">
<b> Annotation file (save as video_name.json): </b>
<br/>
<table width="100%"><tr>
<td width="80%">
<span id="save_textbox">
</span>
</td>
</tr></table>
</div>
</body>
</html>