-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
47 lines (43 loc) · 1.5 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
<!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 + dcm2niix WASM</title>
</head>
<body>
<header id="header">
<div id="dropTarget" class="drop-target">
<p>Drop a folder of DICOM files here</p>
<p>Or use the file input button below</p>
</div>
<!-- ordered list for instructions -->
<ol id="instructions">
<li>
<!-- directory input -->
<label for="fileInput" id="fileInputLabel" class="file-input-label">
Choose a folder of DICOM files
</label>
<input type="file" id="fileInput" webkitdirectory multiple />
</li>
<li>
<!-- file select for converted files returned from dcm2niix -->
<label for="fileSelect" id="fileSelectLabel">View a converted file</label>
<select id="fileSelect" class="hidden"></select>
</li>
<li>
<!-- optional: save nii file in the niivue canvas from conversion -->
<label for="saveButton" id="saveButtonLabel">Optional: save the nifti file you are viewing</label>
<button id="saveButton" class="hidden">Save selected file</button>
</li>
</ol>
<div id="loadingCircle" class="loading-circle hidden"></div>
</header>
<main id="canvas-container">
<canvas id="gl"></canvas>
</main>
<footer id="intensity"> </footer>
<script type="module" src="/main.js"></script>
</body>
</html>