-
Notifications
You must be signed in to change notification settings - Fork 5
/
animate.ejs
138 lines (116 loc) · 6.32 KB
/
animate.ejs
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
<!DOCTYPE html>
<html lang="en">
<head>
<title>SnapperGPS - Animate</title>
<link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon" />
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css" integrity="sha512-xodZBNTC5n17Xt2atTPuE1HxjVMSvLVW9ocqUKLsCC5CXdbqCmblAshOMAS6/keqq/sMZMZ19scR4PsZChSR7A==" crossorigin=""/>
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/MarkerCluster.css"/>
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/MarkerCluster.Default.css"/>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-BmbxuPwQa2lc/FVzBcNJ7UAyJxM6wuqIj61tLrc4wSX0szH/Ev+nYRRuWlolflfl" crossorigin="anonymous">
<link rel="stylesheet" href="css/style.css" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<!-- Nav bar -->
<%- include ('partials/navBar', {pageName: 'download'}) %>
<!-- Main body -->
<main class="container">
<div class="row">
<div class="col">
<h1>Animate your track</h1>
</div>
</div>
<div class="row bg-light">
<div class="col">
<div id="display-map" style="height: 400px;"></div>
</div>
</div>
<div class="row bg-light">
<div class="btnrow" style="margin-top: 10px">
<div class="col">
<button class="btn btn-primary btncol full-width" id="play-button" disabled style="min-width: 175px">Play</button>
</div>
</div>
<div class="row">
<div class="col">
<span id="datetime-span" style="margin-right: 10px;">-</span>
</div>
</div>
<div class="row">
<div class="col">
<label for="duration-input" style="margin-right: 10px;">Duration:</label>
<input id="duration-input" disabled type="number" value="30" min="1"
style="width: 70px; text-align: right;">
<label for="duration-input">seconds</label>
</div>
</div>
<div class="row">
<div class="col">
<label for="follow-checkbox" style="margin-right: 10px;">Follow track:</label>
<input type="checkbox" id="follow-checkbox" disabled>
</div>
</div>
<div class="row">
<div class="col">
<label for="loop-checkbox" style="margin-right: 10px;">Loop:</label>
<input type="checkbox" id="loop-checkbox" disabled>
</div>
</div>
<div class="row">
<div class="col">
<label for="point-limit-input" style="margin-right: 10px;">Limit line length:</label>
<input id="point-limit-input" disabled type="number" value="" min="1"
style="width: 70px; text-align: right;">
<label for="point-limit-input">points</label>
</div>
</div>
<div class="row">
<div class="col">
<label for="hide-map-controls-checkbox" style="margin-right: 10px;">Hide map controls:</label>
<input type="checkbox" id="hide-map-controls-checkbox" disabled>
</div>
</div>
<div class="row">
<div class="col">
<label for="hide-map-scale-checkbox" style="margin-right: 10px;">Hide map scale:</label>
<input type="checkbox" id="hide-map-scale-checkbox" disabled>
</div>
</div>
<div class="row">
<div class="col">
<label for="color-input" style="margin-right: 10px;">Line colour:</label>
<input id="color-input" disabled type="color"
style="width: 70px; text-align: right;">
</div>
</div>
<div class="row">
<div class="col">
<label for="weight-input" style="margin-right: 10px;">Line weight:</label>
<input id="weight-input" disabled type="number" value="3" min="1"
style="width: 70px; text-align: right;">
</div>
</div>
<div class="row">
<div class="col">
<label for="opacity-input" style="margin-right: 10px;">Line opacity:</label>
<input id="opacity-input" disabled type="number" value="1.0" min="0" max="1" step="0.1"
style="width: 70px; text-align: right;">
</div>
</div>
</div>
<div id="warning-display" style="display: none;">
<div class="card text-white bg-warning mb-3">
<div class="card-header"><b>Warning</b></div>
<div class="card-body">
<p id="warning-text" class="card-text"></p>
</div>
</div>
</div>
</main>
</body>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://unpkg.com/[email protected]/dist/leaflet.js" integrity="sha512-XQoYMqMTK8LvdxXYG3nZ448hOEQiglfqkJs1NOQV44cWnUrBc8PkAOcXy20w0vlaXaVUearIOBhiXZ5V3ynxwA==" crossorigin=""></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-b5kHyXgcpbZJO/tY9Ul7kGkf1S0CWuKcCD38l8YkeH8z8QjE0GmW1gYU5S9FOnJ0" crossorigin="anonymous"></script>
<script src='//api.tiles.mapbox.com/mapbox.js/plugins/leaflet-image/v0.0.4/leaflet-image.js'></script>
<script src="js/animate/animateUI.js"></script>
</html>