-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
54 lines (48 loc) · 1.61 KB
/
Copy pathindex.html
File metadata and controls
54 lines (48 loc) · 1.61 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>IMPACT Webapp</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<canvas id="viewer"></canvas>
<div id="fileLoader">
<div id="loaderTabs">
<span class="tab active" data-mode="file">File</span>
<span class="tab" data-mode="url">URL</span>
</div>
<div id="fileMode">
<label for="volumeInput">Volume (.nrrd)</label>
<input type="file" id="volumeInput" accept=".nrrd">
<label for="maskInput">Mask (.nrrd) — optional</label>
<input type="file" id="maskInput" accept=".nrrd">
</div>
<div id="urlMode" style="display:none;">
<input type="text" id="volumeURL" placeholder="Volume URL (.nrrd)">
<input type="text" id="maskURL" placeholder="Mask URL — optional">
<button id="loadURLButton">Load</button>
</div>
</div>
<div id="controls">
<label>Brush Size: <span id="brushLabel">3</span></label>
<input type="range" id="brushSlider" min="1" max="25" value="3">
</div>
<div id="hotkeys">
<p><b>Hotkeys</b></p>
<p>V — cycle view</p>
<p>1 (hold) — paint</p>
<p>2 (hold) — erase</p>
<p>[ / ] — brush size</p>
<p>Arrow keys — navigate slices</p>
<p>C — copy mask to next slice</p>
<p>B — copy mask to prev slice</p>
<p>I — interpolate between painted slices</p>
<p>Z — undo</p>
<p>X — save mask (.nrrd)</p>
<p>H — toggle mask visibility</p>
</div>
<script type="module" src="main.js"></script>
</body>
</html>