-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
207 lines (198 loc) · 11.1 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="Samuel Navas Medrano">
<link rel="icon" type="image/png" href="favicon-125x125.png"/>
<!--<link rel="icon" href="favicon.ico">-->
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>Georeferencing videos</title>
<!-- Bootstrap -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"
integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
<!-- FontAwesome -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
<!-- Leaflet -->
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet/v0.7.7/leaflet.css" />
<!-- IntroJS -->
<link rel="stylesheet" href="introjs/introjs.css" />
<!-- Custom CSS -->
<link href="index.css" rel="stylesheet">
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
</div>
<div class="row">
<div class="col-md-8" id="map"
data-intro='This is the <b>map box</b>, you can <b>pan</b> it and <b>zoom</b> it wherever you want. <br></br> You can also place video
<span class="text-info"><b>waypoint</b></span> by <b>clicking</b> on the map and then <b>click again</b> to setting the
<span class="text-warning"><b>field of view</b></span> of the video in that <span class="text-info"><b>waypoint</b></span>.
<br></br> If you have place a <span class="text-info"><b>waypoint</b></span> wrongly you can <b>drag and drop</b> it to
another position or just <b>click on it</b> to see its details and <b>delete</b> it.'
data-position='right'
data-step="6">
</div>
<div class="col-md-4" id="section">
<div class="alignleft">
<b>Routing options:</b> </br>
<div class="btn-group" data-toggle="buttons">
<label class="btn btn-primary active">
<input type="radio" name="options" onchange="changevehicle(this)" value="foot" checked>
<i class="fa fa-male"></i>
</label>
<label class="btn btn-primary">
<input type="radio" name="options" onchange="changevehicle(this)" value="bike">
<i class="fa fa-bicycle"></i>
</label>
<label class="btn btn-primary">
<input type="radio" name="options" onchange="changevehicle(this)" value="car">
<i class="fa fa-car"></i>
</label>
</div>
</div>
<div class="alignright" data-intro='When you finish, you have to <b>save the geotag</b> pressing the <span class="text-success">
<b>green save button</b></span>. You can also replay this tutorial by clicking the <span class="text-primary"><b>light blue info button</b></span>.'
data-step="7">
<b> Save: Info:</b> </br>
<button id="save-button" type="submit" class="btn btn-success" onclick="save()">
<span id="save-icon" class="fa fa-download" aria-hidden="true"></span>
</button>
<button id="save-button" type="submit" class="btn btn-info" onclick="startTutorial('true')">
<span id="save-icon" class="fa fa-info-circle" aria-hidden="true"></span>
</button>
</div>
<div style="clear: both;"></div>
<p></p>
<!--
<form method="post" role="form" action="action.cgi" enctype="multipart/form-data" id="submit" style="margin-right:10pt;">
<b>Submit new video:</b>
<input type="file" name="nombre" class="form-control" disabled>
</form> <p></p> -->
<form id="select" style="margin-right:10pt;"
data-intro='<b>Welcome to the GeoRef Videos WebApp! </b><br></br>
This is the <b>video selector</b>, you can try selecting the video called <b>Route2</b>'
data-step="1">
<b>Select existing video:</b>
<select name="videos" class="form-control">
<option value="" selected="true"> --- </option>
<option value="route2_20151111_150618.mp4">Route2: Fachhoschule, Correnstraße - Heisenbergstraße Münster</option>
</select>
</form><p></p>
<div align="center" class="embed-responsive embed-responsive-16by9" style="margin-right:10pt;"
data-intro='Now the tutorial1 video has been loaded! Try to click on it to <b>play/pause</b> it.'
data-step="2">
<video class="embed-responsive-item" id="video1" muted>
<!--<source src="videos/muenster-promenade.mp4" type="video/mp4">-->
<track src="videos/thumbs.vtt" kind="metadata" default>
<track src="videos/captures.vtt" kind="metadata" default>
A browser with <a href="http://www.jwplayer.com/html5/">HTML5 text track support</a> is required.
</video>
</div>
<p></p>
<div data-intro='You can <b>control</b> the video using the <b>buttons</b> or the <b>keyboard</b> <br>
<ul> <li>Play/Pause: Space</li> <li>Rewind: del</li>
<li>Change Speed: 1, 2, 3, 4, 5 keys </li>
<li>Step-foward: right arrow</li> <li>Step-backward: left arrow</li>
<li>Fullscreen: F12</li> </ul>'
data-step="3">
<button type="button" class="btn btn-default" id="rewind" onclick="fullScreen()">
<span class="fa fa-expand" aria-hidden="true"></span>
</button>
<button type="button" class="btn btn-default" id="playPause" onclick="playPause()">
<span class="fa fa-play" aria-hidden="true"></span> /
<span class="fa fa-pause" aria-hidden="true"></span>
</button>
<button type="button" class="btn btn-default" id="rewind" onclick="rewind()">
<span class="fa fa-step-backward" aria-hidden="true"></span>
</button>
<div class="btn-group" data-toggle="buttons">
<label class="btn btn-default active">
<input type="radio" id="speed1" name="options" onchange="speed(this);" value="1"> 1x
</label>
<label class="btn btn-default">
<input type="radio" id="speed2" name="options" onchange="speed(this);" value="2"> 2x
</label>
<label class="btn btn-default">
<input type="radio" id="speed3" name="options" onchange="speed(this);" value="3"> 3x
</label>
<label class="btn btn-default">
<input type="radio" id="speed4" name="options" onchange="speed(this);" value="4"> 4x
</label>
<label class="btn btn-default">
<input type="radio" id="speed5" name="options" onchange="speed(this);" value="5"> 5x
</label>
</div>
<!-- <p style="display: inline" id="clock">t = 0</p> -->
<button id="clock" class="btn btn-default" disabled>00:00</button>
</div>
<!--<form >
<input type="checkbox" id="showcaptionscheck" onclick="check(this)"> Show/Hide extraction status<br>
</form>-->
<div data-intro="In the <b>sugested places</b> area you can find places wich may correspond to the video location. <br>
Or if you prefer, you can perform a manual text-based search of a geographic place" data-step="5">
</br><b>Sugested places:</b>
<ul id="sugestedPlaces" class="places" style="list-style-type:none">
</ul>
<b>Manual search:</b>
<div class="input-group">
<span class="input-group-btn">
<button class="btn btn-default" type="button" onclick="search()">
<span id="save-icon" class="fa fa-search" aria-hidden="true"></span>
</button>
</span>
<input type="text" class="form-control" placeholder="Search for..." id="search">
<p></p>
</div>
<ul id="searchPlaces" class="places" style="list-style-type:none">
</ul>
</div>
</div>
</div>
<div id="timeline" data-intro='You can even control the video by using this <span class="text-danger"><b>timeline</b></span>.
Try it!' data-step="4" data-position='top'></div>
<span id="thumb"></span>
<!-- Modal -->
<div id="myModal" class="modal fade" role="dialog">
<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-content panel-warning" >
<div class="modal-header panel-heading">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title">Warning!</h4>
</div>
<div class="modal-body">
<p>It looks like you have done some progress. If you change the video that progress will be deleted. Are you sure do you want to continue?</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal" onclick="callback(false)">No</button>
<button type="button" class="btn btn-danger" data-dismiss="modal" onclick="callback(true)">Yes</button>
</div>
</div>
</div>
</div>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins)
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>-->
<script src="//code.jquery.com/jquery-1.11.3.min.js"></script>
<script type="text/javascript" src="js/victor.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"
integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS"
crossorigin="anonymous"></script>
<script src="http://cdn.leafletjs.com/leaflet/v0.7.7/leaflet.js"></script>
<script type="text/javascript" src="introjs/intro.js"></script>
<script type="text/javascript" src="js/waypoint.js"></script>
<script type="text/javascript" src="js/keyboard.js"></script>
<script type="text/javascript" src="js/video.js"></script>
<script type="text/javascript" src="js/interpolation.js"></script>
<script type="text/javascript" src="js/parseKML.js"></script>
<script type="text/javascript" src="index.js"></script>
</body>
</html>