-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
266 lines (228 loc) · 10.7 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
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
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
<!DOCTYPE html>
<html style="height: 100%; margin: 0;">
<head>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-128060564-6"></script>
<script>
var host = window.location.hostname;
if (host != 'localhost') {
window.dataLayer = window.dataLayer || [];
function gtag() {dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-128060564-6');
}
</script>
<title>Viewer</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<!--jquery -->
<script src="https://code.jquery.com/jquery-3.3.1.js"></script>
<!-- bootstrap -->
<link rel="stylesheet" href="dashboard/js/lib/css/bootstrap.min.css">
<script src="dashboard/js/lib/js/bootstrap.min.js"></script>
<!--d3 -->
<script src='https://d3js.org/d3.v4.min.js'></script>
<!-- leaflet v 1.0.3 -->
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.0.3/dist/leaflet.css"/>
<script src="https://unpkg.com/leaflet@1.0.3/dist/leaflet-src.js"></script>
<!-- leaflet-pip v1.1.0 -->
<script src="dashboard/js/lib/js/leaflet-pip.js"></script>
<!-- <!– leaflet.textpath –>-->
<!-- <script src='dashboard/js/lib/js/leaflet.textpath.js'></script>-->
<!-- topojson -->
<script src="https://unpkg.com/topojson@3"></script>
<!-- turf -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/Turf.js/5.1.5/turf.min.js"></script>
<!-- datatables -->
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.19/css/jquery.dataTables.min.css">
<script src="https://cdn.datatables.net/1.10.19/js/jquery.dataTables.min.js"></script>
<!-- I think this Pixi.js and PixiOverlay.js in one file?? -->
<script src="dashboard/js/lib/js/pixiOverlay/example.min.js"></script>
<script src="dashboard/js/lib/js/pixiOverlay/tools.min.js"></script>
<script src="dashboard/js/lib/js/pixiOverlay/MarkerContainer.js"></script>
<script src="dashboard/js/lib/js/pixiOverlay/bezier-easing.js"></script>
<!-- leaflet Coordinates v0.1.3 -->
<link rel="stylesheet" href="dashboard/js/lib/css/Leaflet.Coordinates-0.1.3.css"/>
<script src="dashboard/js/lib/js/Leaflet.Coordinates-0.1.3.src.js"></script>
<!-- kdbush -->
<script src="https://unpkg.com/kdbush@3.0.0/kdbush.min.js"></script>
<!-- mapbox-gl -->
<script src="https://api.mapbox.com/mapbox-gl-js/v1.10.1/mapbox-gl.js"></script>
<!-- leaflet.textpath -->
<!-- Not sure what is happening here. Is this getting overriden if I move it to another line, higher up. -->
<!-- No errors are being raised, it just looks as if the browser hasnt parsed it!-->
<script src='dashboard/js/lib/js/leaflet.textpath.js'></script>
<!-- <!– progressbar –>-->
<!-- <script src="https://rawgit.com/kimmobrunfeldt/progressbar.js/1.0.0/dist/progressbar.js"></script>-->
<!-- <!– Loading bar –>-->
<!-- <link rel="stylesheet" href="dashboard/js/lib/css/loading-bar.css">-->
<!-- <script src="dashboard/js/lib/js/loading-bar.js"></script>-->
<!-- user js scripts -->
<script> console.log('reading source files')</script>
<script src='dashboard/js/config.js'></script>
<script src='dashboard/js/dataLoader.js'></script>
<script src='dashboard/js/viewerUtils.js'></script>
<script src='dashboard/js/customControl.js'></script>
<!-- <script src='dashboard/js/fov_boundaries.js'></script>-->
<script src="https://api.mapbox.com/mapbox-gl-js/v1.10.1/mapbox-gl.js"></script>
<script src='dashboard/js/my_collision.js'></script>
<script src='dashboard/js/donut.js'></script>
<script src='dashboard/js/dt.js'></script>
<script src='dashboard/js/stage_polygons.js'></script>
<script src='dashboard/js/stage_markers_patched.js'></script>
<script src='dashboard/js/stage_glyphs.js'></script>
<script src="dashboard/js/classColors.js"></script>
<script src="dashboard/js/glyphPaths.js"></script>
<script src="dashboard/js/glyphs.js"></script>
<script src="dashboard/js/glyphConfig.js"></script>
<script src='dashboard/js/dapi.js'></script>
<link rel="stylesheet" href="dashboard/js/lib/css/L.Control.Layers.Tree.css">
<script src="dashboard/js/lib/js/L.Control.Layers.Tree.js"></script> <!-- Patched Control.Layers.Tree: Must be parsed after dapi.js -->
<link rel="stylesheet" href="dashboard/css/progress.css">
<script src='dashboard/js/progress.js'></script>
<link rel='stylesheet' href='dashboard/css/index.css'>
<script src='dashboard/js/index.js'></script>
<script> console.log('source files parsed')</script>
</head>
<body style="height: 100%; margin: 0; overflow: hidden;">
<div id="webgl" class="map-content">
<span class="greenDot"> </span>
<span style="margin-top: 5px;">Hardware acceleration is enable</span>
</div>
<!--<div id="preloader" class="a" style="font-size:32px;text-align:center;">-->
<!-- <h1>Prototype viewer for high throughput in situ transcriptomics.</h1>-->
<!-- <p>Data can take a moment to load, please be patient </p>-->
<!-- <div class="b">Please set your browser to use hardware acceleration. <br>-->
<!-- Tested on Chrome under Windows, cannot yet guarantee operation on other browsers </div>-->
<!-- <div id="status"></div>-->
<!--</div>-->
<div id="stats-container" class="stack-top">
<!-- <div id="chart"></div>-->
<div class="loading">
<div id="container"></div>
<div id="loading" class="loading"><span>loading...</span></div>
<div id="loading_perc" class="loading"><span>loading...</span></div>
<div id="loading_mb" class="loading"><span>loading...</span></div>
<div id="done" class="loading"><span></span></div>
</div>
</div>
<div class="container-fluid aligned-middle stack-top" id="preloader">
<div class="row">
<div class="col-sm-12">
<div class="col-sm-4">
<div class="row">
<div id="specificChart" class="donut-size">
<div class="pie-wrapper">
<span class="label">
<span class="num">0</span><span class="smaller">%</span>
</span>
<div class="pie">
<div class="left-side half-circle"></div>
<div class="right-side half-circle"></div>
</div>
<div class="shadow"></div>
</div>
</div>
</div>
<div class="row">
<div class="text-center">
<p>Num of boundaries: <span id="datapoints" class="meter">0</span></p>
<p>Size: <span id="mb" class="meter">0MB</span></p>
</div>
</div>
</div>
<div class="col-sm-4">
<div class="row">
<div id="specificChart2" class="donut-size">
<div class="pie-wrapper">
<span class="label">
<span class="num">0</span><span class="smaller">%</span>
</span>
<div class="pie">
<div class="left-side half-circle"></div>
<div class="right-side half-circle"></div>
</div>
<div class="shadow"></div>
</div>
</div>
</div>
<div class="row">
<div class="text-center">
<p>Num of cells: <span id="datapoints2" class="meter">0</span></p>
<p>Size: <span id="mb2" class="meter">0MB</span></p>
</div>
</div>
</div>
<div class="col-sm-4">
<div class="row">
<div id="specificChart3" class="donut-size">
<div class="pie-wrapper">
<span class="label">
<span class="num">0</span><span class="smaller">%</span>
</span>
<div class="pie">
<div class="left-side half-circle"></div>
<div class="right-side half-circle"></div>
</div>
<div class="shadow"></div>
</div>
</div>
</div>
<div class="row">
<div class="text-center">
<p>Num of spots: <span id="datapoints3" class="meter">0</span></p>
<p>Size: <span id="mb3" class="meter">0MB</span></p>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12" id="wait_chart">
Building the chart. Please wait...
</div>
<script>$('#wait_chart').hide()</script>
</div>
</div>
<div id="mymap" style="height: 100%; width: 100%;">
<div class="legend geometry top center hide">
<div class="wrapper">
<div class="content"></div>
</div>
</div>
</div>
<div id="legend" class="map-content">
<a id="legend-link" target="_blank">Gene Panel »</a>
<script>$('#legend').hide();</script>
</div>
<div class="form-group">
<div class="map-content" id="hideDapiAndPanels">
<div class="checkbox" style="margin-top: 1px; margin-bottom: 1px;">
<label>
<input id="dapiToggle" onclick=dapiConfig.toggleMapControl.update(this.checked); type="checkbox">
Hide Dapi
</label>
</div>
<div class="checkbox panelsToggle" style="margin-top: 1px; margin-bottom: 1px;">
<label>
<input id="panelsToggle" onclick=hidePanels(this.checked); type="checkbox">
Hide Panels
</label>
</div>
</div>
<script>$('#hideDapiAndPanels').hide();</script>
</div>
<script>
function removePreloader() {
// $('#stats-container').delay(350).fadeOut('slow'); // will first fade out the loading animation
$('#stats-container').hide()
$('#preloader').delay(350).fadeOut(250); // will fade out the white DIV that covers the website.
// $('#preloader').hide();
$('body').delay(350).css({'overflow': 'visible'});
}
</script>
<script>
document.addEventListener("DOMContentLoaded", run(), false);
</script>
</body>
</html>