forked from Tevemadar/LocaliZoomCollab
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathfilmstripzoom.html
222 lines (222 loc) · 7.96 KB
/
filmstripzoom.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
<!DOCTYPE html>
<html>
<head>
<title>LocaliZoom</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width">
<style>
html{
height: 100%;
overflow: hidden;
}
body{
margin: auto;
height: 100%;
display: flex;
flex-direction: column;
}
canvas{
display: block;
cursor: crosshair;
outline: none;
}
#traf{
width: 130px;
}
#status{
padding: 5px;
background: #F0F0F0;
flex: none;
}
#coords{
display: inline-block;
width: 500px;
}
#outline{
height: 18px;
}
#alpha{
height: 15px;
width: 100px;
}
#container{
position: relative;
flex: auto;
display:flex;
overflow: hidden;
}
#scrollsep{
background-color: gray;
width: 0.5em;
}
#main{
position: relative;
flex: 1 1 auto;
margin: 0;
padding: 0;
overflow: hidden;
}
#filmstrip{
display: flex;
flex-direction: column;
}
#striphead{
flex: none;
}
#stripscroller{
overflow-y: scroll;
flex: auto;
display: flex;
flex-direction: column;
}
.icon{
position: relative;
border-top: 5px solid transparent;
border-bottom: 5px solid transparent;
}
.icon.active{
border-top: 5px solid orange;
border-bottom: 5px solid orange;
}
.icnv{
position: absolute;
top: 0;
left: 0;
cursor: pointer;
}
#controls{
position: absolute;
top: 0;
padding: 0.5em;
}
#tools{
background: #F0F0F0;
height: 20px;
padding: 5px;
position: absolute;
left:0;
}
#toggleAN,#toggleNL,
#antools,
#nltools{
display: none;
}
#helpbutton{
float: right;
}
#help{
display: none;
width: 500px;
background: #F0F0F0;
position: absolute;
top: 0;
right: 0;
padding: 10px;
}
#metadata{
color: black;
background: lightgray;
position: absolute;
top: 0;
right: 0;
text-align: center;
padding: 0.5em;
}
#cover{
background: darkgray;
opacity: 0.5;
position: absolute;
top:0;
left:0;
width: 100%;
height: 100%;
}
#popup,#popcont{
background: white;
position: absolute;
top:0;
bottom:0;
left:0;
right:0;
margin:auto;
}
#popup{
width: 500px;
height: 300px;
}
#popcont{
width: max-content;
height: max-content;
}
</style>
<script src="cache.js"></script>
<script src="derle.js"></script>
<script src="slicer.js"></script>
<script src="filmstrip.js"></script>
<script src="zoomer.js"></script>
<script src="math.js"></script>
<script src="propagation.js"></script>
<script src="nonlin.js"></script>
<script src="main.js"></script>
<script src="dppick.js"></script>
<script src="segrle.js"></script>
<script src="https://cdn.jsdelivr.net/gh/Tevemadar/ZipStore.js/zipstore.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/Tevemadar/PackXLSX.js/xlsxwriter.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/Tevemadar/NetUnzip/inflater.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/Tevemadar/NetUnzip/netunzip.min.js"></script>
</head>
<body onload="startup()">
<div id="status">
<select id="traf"></select>
<span id="coords"></span>
Atlas opacity:
<input type="range" id="alpha" min="0" max="100" step="10" value="100" onchange="handleOvly(event)">
Outline:
<input type="color" value="#0000FF" id="outline" onchange="handleOvly(event)">
<span id="helpbutton"><button onclick="toggleHelp()">?</button></span>
</div>
<div id="container">
<div id="main">
<div id="tools">
<button onclick="save()" id="btn_save">Save</button><button onclick="saveas()" id="btn_saveas">Save As...</button>
<button id="btn_exprt" onclick="exprt()" hidden>Export overlays</button>
<button id="btn_excel" onclick="excel()" hidden>XLSX export</button>
<button id="toggleNL" onclick="toggleNL()">Settings</button>
<button id="toggleAN" onclick="toggleAN()">Settings</button>
<div id="antools">
Marker color: <input type="color" id="ancolor" value="#000000" oninput="drawImage()" style="height: 18px">
</div>
<div id="nltools">
Marker color: <input type="color" id="nlcolor" value="#000000" oninput="drawImage()" style="height: 18px">
<input type="checkbox" id="show_triangles" onchange="drawImage()">Show triangles
</div>
</div>
<canvas id="zoomcanvas" tabindex="1" onmouseover="event.target.focus()"></canvas>
<div id="metadata"></div>
</div>
<div id="scrollsep"></div>
<div id="filmstrip">
<div id="striphead"><input type="range" id="fs_alpha" min="0" max="100" step="10" value="30" oninput="fs_ovly(event)"></div>
<div id="stripscroller"></div>
</div>
<div id="help">
Controls:<br>
<ul>
<li>Pan and zoom with mouse drag and mouse scroll wheel</li>
<li>Step backwards and forwards in series with left and right arrow keys<sup><sub>*</sub></sup></li>
<li>Quick set segmentation transparency to minimum and back using down and up arrow keys<sup><sub>*</sub></sup></li>
<!-- <li>Press Space<sup><sub>*</sub></sup> to annotate points of interest. Atlas coordinates for points of interest can be exported to Excel or MeshView atlas viewer (requires Adobe Flash)</li>
<li>Press Delete<sup><sub>*</sub></sup> to remove an annotation marker under the mouse cursor</li>
<li>Drag an annotation marker to refine its position</li>-->
</ul>
<a href="https://localizoom.readthedocs.io/" target="_blank">Documentation</a><br>
<br>
*: Click on main view to activate keyboard controls.
</div>
</div>
<div id="cover"></div>
<div id="popup">
<div id="popcont"></div>
</div>
</body>
</html>