-
Notifications
You must be signed in to change notification settings - Fork 0
/
demo.html
73 lines (65 loc) · 2.03 KB
/
demo.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
<!DOCTYPE html>
<html>
<head>
<title>Large sample locator</title>
<style>
body {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 30vh;
margin: 0;
}
.canvas-container {
position: absolute;
top: 30vh;
left: 85vh
}
canvas {
position: absolute;
top: 0;
left: 0;
}
.slider-container {
display: flex;
align-items: center;
}
.slider-label {
margin-right: 10px;
}
</style>
</head>
<body>
<h1>Large sample locator</h1>
<div>
<label for="fov-slider">FOV (Field of View):</label>
<select id="fov-slider">
<option value="20">2.5</option>
<option value="5">5</option>
<option value="2.5">20</option>
</select>
</div>
<div class="slider-container">
<label class="slider-label" for="vertical-slider">Vertical:</label>
<input type="range" id="vertical-slider" min="105" max="245" step="1">
<span id="verticalslider-value">105</span>
</div>
<div class="slider-container">
<label class="slider-label" for="horizontal-slider">Horizontal:</label>
<input type="range" id="horizontal-slider" min="145" max="205" step="1">
<span id="horizontalslider-value">145</span>
</div>
<div class="slider-container">
<label class="slider-label" for="circle-radius">Sample Radius:</label>
<input type="range" id="circle-radius" min="1" max="50" step="1">
<span id="radiusslider-value">1</span>
</div>
<div class="canvas-container">
<canvas id="background-canvas" width="400" height="400"></canvas>
<canvas id="chamber-canvas" width="400" height="400"></canvas>
<canvas id="circle-canvas" width="400" height="400"></canvas>
</div>
<script src = "demo_script.js"></script>
</body>
</html>