-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
78 lines (75 loc) · 2.4 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="./niivue.css" />
<title>Niivue brain chop</title>
</head>
<body>
<header>
<label for="clipCheck">Clip Plane</label>
<input type="checkbox" id="clipCheck" unchecked />
<label for="opacitySlider0">Background Opacity</label>
<input type="range" min="0" max="255" value="255" class="slider" id="opacitySlider0" />
<label for="opacitySlider1">Overlay Opacity</label>
<input type="range" min="0" max="255" value="128" class="slider" id="opacitySlider1" />
<label for="modelSelect">Segmentation Model</label>
<select id="modelSelect">
</select>
<button id="saveImgBtn">Save Overlay</button>
<button id="saveSceneBtn">Save Scene</button>
<label for="workerCheck">Use Webworker</label>
<input type="checkbox" title="webworkers are faster but not supported by all browsers" id="workerCheck" checked />
<label for="penDrop">Draw</label>
<select id="penDrop">
<option value="-1">Off</option>
<option value="2">On</option>
<option value="10">Filled</option>
<option value="0">Erase</option>
</select>
<select id="drawDrop">
<option value="0">Undo</option>
<option value="1">Append</option>
<option value="2">Remove</option>
</select>
<label for="dragMode">Drag Mode</label>
<select id="dragMode">
<option>none</option>
<option>contrast</option>
<option>measurement</option>
<option selected>pan/zoom</option>
<option>slicer3D</option>
</select>
<button id="diagnosticsBtn">Diagnostics</button>
<button id="aboutBtn">About</button>
</header>
<main id="canvas-container">
<canvas id="gl1"></canvas>
</main>
<footer>
<div class="footer">
<table class="footer">
<tr>
<th id="location">Drag and Drop any NIfTI image</th>
<th><progress id="modelProgress" value="0" max="100"> 32% </progress></th>
<th>
<!-- important to use class footer here -->
<div class="footer" id="memstatus" style="color: green">Memory OK</div>
</th>
</tr>
</table>
</div>
</footer>
<script type="module" src="/main.js"></script>
</body>
</html>