-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
69 lines (68 loc) · 1.43 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>My first three.js app</title>
<style>
body { margin: 0; }
.viewports {
display: grid;
width: 99%;
height: 600px;
grid-template-columns: 300px 1fr 1fr;
grid-template-rows: 1fr 1fr;
grid-column-gap: 2px;
grid-row-gap: 2px;
padding: 2px;
background-color: black;
font-size: 3rem;
margin-top: 30px;
}
.viewports div{
background-color: white;
display: flex;
justify-content: center;
align-items: center;
}
.header {
position: fixed;
background-color: rgba(255, 255, 255, 0.9);
width: 100%;
height: 30px;
border-bottom: 1px solid #ccc;
top: 0;
}
.header h2 {
font-size: 16px;
}
.leftBar {
grid-column: 1;
grid-row-start: 1;
grid-row-end: 3;
}
#my_file {
display: none;
}
</style>
</head>
<body>
<div class="header"><h2>Redimind</h2></div>
<div class="viewports">
<div class="leftBar">
<button onclick="loadFile()">Load DICOM file</button>
<input type="file" id="my_file">
</div>
<div>Front View</div>
<div>Top View</div>
<div>Left View</div>
<div style="width: 600px; height: 500px" id="container"></div>
</div>
<script src="js/three.js"></script>
<script type="module" src="js/script.js"></script>
<script>
function loadFile () {
document.getElementById('my_file').click();
};
</script>
</body>
</html>