forked from Tevemadar/LocaliZoomCollab
-
Notifications
You must be signed in to change notification settings - Fork 2
/
filmstripzoom.html
132 lines (131 loc) · 6.78 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
<!DOCTYPE html>
<html>
<head>
<title>LocaliZoom</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width">
<style>
body{margin: 0;padding: 0; overflow:hidden;}
canvas{display: block;cursor: crosshair;outline: none;}
canvas#scroller{cursor: pointer;}
div{display: inline-block;}
#traf{width: 130px;}
#status{padding: 5px;background: #F0F0F0;width: 900px;/*height: 20px;*/}
#coords{float: right;padding-right: 5px;}
#outline{float:right;height: 18px;}
#outlinedesc{float:right;padding-right: 5px;}
#alpha{float:right;height: 15px;width: 100px;}
#alphadesc{float:right;padding-right: 5px;}
/* #bright{float:right;height: 15px;width: 100px;}
#brightdesc{float:right;padding-right: 5px;}*/
#tools{background: #F0F0F0;height: 20px;padding: 5px;position: absolute;left:0;}
/*#toolsinner{display: none;}*/
#toggleAN,#toggleNL,
#antools,
#nltools{display: none;}
#helpbutton{float: right;padding: 5px;}
#help{display: none;width: 500px;background: #F0F0F0;position: absolute;padding: 10px;}
#metadata{display: block;position: absolute;text-align: center; right:0;}
#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="inflater.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>
<!-- <input type="range" id="bright" min="1" max="20" step="0.2" value="1" onchange="drawImage()">
<div id="brightdesc">Brighten image:</div>-->
<input type="color" value="#0000FF" id="outline" oninput="handleOvly(event)">
<div id="outlinedesc">Outline:</div>
<input type="range" id="alpha" min="0" max="100" step="10" value="100" oninput="handleOvly(event)">
<div id="alphadesc">Atlas opacity:</div>
<div id="coords"></div>
</div>
<div id="helpbutton"><button onclick="toggleHelp()">?</button></div>
<div id="tools">
<!--<button id="toggleAN" onclick="toggleAN()">Annotation tools</button>-->
<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">
<!--<button onclick="load()">Load</button><button onclick="save()" id="btn_save">Save</button>-->
<!--Export to <button onclick="excel()">Excel</button> (current section only)<!-- or <button onclick="meshview()">MeshView</button> (all slices).-->
</div>
<div id="nltools">
Marker color: <input type="color" id="nlcolor" value="#000000" oninput="drawImage()" style="height: 18px">
<!--<button onclick="load()" disabled>Load</button>-->
<input type="checkbox" id="show_triangles" onchange="drawImage()">Show triangles
</div>
<!-- <div id="toolsinner">
Marker color: <input type="color" id="crosscolor" value="#000000" onchange="drawImage()" style="height: 18px">
<button onclick="load()">Load</button><button onclick="save()" id="btn_save">Save</button>
Export to <button onclick="excel()">Excel</button> (this slice) or <button onclick="meshview()">MeshView</button> (all slices).
<input type="checkbox" id="show_triangles" onchange="drawImage()">Show triangles
</div>-->
</div>
<canvas id="zoomcanvas" tabindex="1" onmouseover="event.target.focus()"></canvas>
<canvas id="scroller" onclick="fs_mclick(event)" onwheel="fs_mwheel(event)"></canvas>
<div id="cover"></div>
<div id="popup">
<div id="popcont"></div>
</div>
<div id="metadata"></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>
</body>
</html>