-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
241 lines (219 loc) · 8.13 KB
/
index.html
File metadata and controls
241 lines (219 loc) · 8.13 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
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
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="utf-8" />
<!-- <meta
http-equiv="Content-Security-Policy"
content="script-src 'self' 'unsafe-inline'; object-src 'self'"
/> -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css" rel="stylesheet" />
<script src="https://cdn.tailwindcss.com"></script>
<link href="https://api.mapbox.com/mapbox-gl-js/v3.0.1/mapbox-gl.css" rel="stylesheet">
<script src="https://api.mapbox.com/mapbox-gl-js/v3.0.1/mapbox-gl.js"></script>
<title>Visualizing Deep</title>
<style>
body {
margin: 0;
}
.wrapper {
width: 100%;
position: relative;
height: 50px;
}
.wrapper input[type="range"] {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
width: 100%;
outline: none;
position: absolute;
margin: auto;
/* top: 0; */
bottom: 0;
background-color: transparent;
pointer-events: none;
}
.wrapper input[type="range"]::-webkit-slider-runnable-track {
-webkit-appearance: none;
height: 5px;
}
.wrapper input[type="range"]::-moz-range-track {
-moz-appearance: none;
height: 5px;
}
.wrapper input[type="range"]::-ms-track {
appearance: none;
height: 5px;
}
.wrapper input[type="range"]::-webkit-slider-thumb {
-webkit-appearance: none;
height: 1.7em;
width: 1.7em;
background-color: #3264fe;
cursor: pointer;
margin-top: -9px;
pointer-events: auto;
border-radius: 50%;
}
.wrapper input[type="range"]::-moz-range-thumb {
-webkit-appearance: none;
height: 1.7em;
width: 1.7em;
cursor: pointer;
border-radius: 50%;
background-color: #3264fe;
pointer-events: auto;
}
.wrapper input[type="range"]::-ms-thumb {
appearance: none;
height: 1.7em;
width: 1.7em;
cursor: pointer;
border-radius: 50%;
background-color: #3264fe;
pointer-events: auto;
}
.wrapper input[type="range"]:active::-webkit-slider-thumb {
background-color: #ffffff;
border: 3px solid #3264fe;
}
.values {
background-color: #3264fe;
width: 32%;
position: relative;
margin: auto;
padding: 6px 0;
border-radius: 5px;
text-align: center;
font-weight: 500;
font-size: 18px;
color: #ffffff;
margin-bottom: 13px;
}
.values:before {
content: "";
position: absolute;
height: 0;
width: 0;
border-top: 8px solid #3264fe;
border-left: 8px solid transparent;
border-right: 8px solid transparent;
margin: auto;
bottom: -7px;
left: 0;
right: 0;
}
#slider-1 {
background-color: #add8e6;
}
#slider-2 {
background-color: #add8e6;
}
#map {
position: absolute; /* Changed from 'relative' to 'absolute' for precise positioning */
left: 30px; /* Aligns the map to the left side of the container */
top: 60%; /* Positions the map halfway down the container */
transform: translateY(-50%); /* Adjusts the map to be centered vertically at 50% */
width: 300px;
height: 200px;
z-index: 10;
}
</style>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" />
</head>
<body>
<script type="module" src="/main.js"></script>
<div id="container" style="position: relative">
<div style="position: absolute; bottom: 12px; left: 60px; overflow: visible" id="pause-icon">
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" id="pause" viewBox="0 0 42 42"
style="overflow: visible">
<path fill="none" d="M0 0h48v48H0z"></path>
<path
d="M18 32h4V16h-4v16zm6-28C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16zm2-8h4V16h-4v16z">
</path>
</svg>
</div>
<div style="position: absolute; bottom: 12px; left: 240px; overflow: visible" id="crop-icon">
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32" id="cut">
<path
d="m17.67 1.928-1.685 6.169-1.685-6.17C14.042.925 12.917.278 11.917.573a1.942 1.942 0 0 0-1.355 2.382l3.418 12.503-1.365 4.977a5.986 5.986 0 0 0-2.082-1.026C2.619 17.513-.488 28.916 7.298 31.27c3.077.915 6.613-1.005 7.486-4.106.03-.068.048-.136.068-.204l1.133-4.144 1.133 4.144c2.38 7.774 13.788 4.666 11.873-3.244-1.03-4.12-6.314-5.911-9.636-3.283l-1.366-4.977 3.419-12.503c.628-2.468-3.026-3.47-3.738-1.026zM11.578 26.07c-1.053 3.487-6.205 2.08-5.326-1.463 1.074-3.512 6.2-2.047 5.326 1.463zm14.14-1.463c.883 3.543-4.277 4.95-5.327 1.462-.873-3.51 4.254-4.974 5.326-1.462z">
</path>
</svg>
</div>
<div style="position: absolute; bottom: 0px; left: 60px; display: none" id="play-icon">
<svg xmlns="http://www.w3.org/2000/svg" id="play" x="0" y="0" width="40" height="40" version="1.1"
viewBox="0 0 42 42" xml:space="preserve" fill="#000">
<path
d="M6.568 27.002c-.49 0-.98-.127-1.429-.383a2.857 2.857 0 0 1-1.461-2.512V4.892c0-1.053.546-1.992 1.461-2.512.914-.521 2-.51 2.905.029l16.142 9.608c.883.526 1.411 1.454 1.411 2.483s-.528 1.957-1.411 2.483L8.045 26.591a2.884 2.884 0 0 1-1.477.411zM6.572 4a.922.922 0 0 0-.445.119.873.873 0 0 0-.45.773v19.216c0 .467.314.696.45.773a.873.873 0 0 0 .895-.009l16.141-9.608c.392-.233.435-.612.435-.764s-.042-.531-.435-.764L7.021 4.128A.858.858 0 0 0 6.572 4z">
</path>
</svg>
</div>
<div style="position: absolute; bottom: 8px; left: 108px" id="reset-icon">
<svg xmlns="http://www.w3.org/2000/svg" width="36" height="36" viewBox="0 0 24 24" id="replay">
<path
d="M12 5V2.21c0-.45-.54-.67-.85-.35l-3.8 3.79c-.2.2-.2.51 0 .71l3.79 3.79c.32.31.86.09.86-.36V7c3.73 0 6.68 3.42 5.86 7.29-.47 2.27-2.31 4.1-4.57 4.57-3.57.75-6.75-1.7-7.23-5.01-.07-.48-.49-.85-.98-.85-.6 0-1.08.53-1 1.13.62 4.39 4.8 7.64 9.53 6.72 3.12-.61 5.63-3.12 6.24-6.24C20.84 9.48 16.94 5 12 5z">
</path>
</svg>
</div>
<div id="chartDiv" class="chartDivCss" style="
width: 70%;
height: 280px;
position: absolute;
right: 80px;
top: -70px;
background-color: transparent;
">
<!-- <div
id="chartHoverDiv"
style="
width: 85%;
height: 120px;
background-color: #ffffff;
position: absolute;
top: 100px;
right: 80px;
opacity: 0.8;
"
></div> -->
</div>
<div id="loading-container">
<div class="loader"></div>
<div id="loading-text">Loading...</div>
</div>
</div>
<div id="myModal" class="modal">
<!-- Modal content -->
<div class="modal-content">
<div class="modal-header">
<span></span>
<span class="close">×</span>
<h2 style="text-align: center">Clip Video</h2>
</div>
<div class="modal-body">
<div class="wrapper" id="dualRangeSlider">
<div class="values">
<span id="range1"> 0 </span>
<span> ‐ </span>
<span id="range2"> 100 </span>
</div>
<div class="range-container">
<div class="slider-track"></div>
<input type="range" id="slider-1" />
<input type="range" id="slider-2" />
</div>
</div>
</div>
<div class="modal-footer">
<button class="" type="button" id="confirmClip">Confirm</button>
</div>
</div>
</div>
<div id="marine-life-dropdown-selector"></div>
<div id="map"></div>
<script type="module" src="/map.js"></script>
<script type="text/javascript" src="https://code.jscharting.com/latest/jscharting.js"></script>
<script src="https://cdn.plot.ly/plotly-latest.min.js"></script>
<!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/animejs/2.0.2/anime.min.js"></script> -->
</body>
</html>