87 lines
2.8 KiB
HTML
87 lines
2.8 KiB
HTML
<html>
|
|
<head>
|
|
<title>OpenFlexure Microscope API Demo</title>
|
|
|
|
<link rel= "stylesheet" type= "text/css" href="{{url_for('static', filename='style_v1.css')}}">
|
|
<script type="text/javascript" src="{{url_for('static', filename='main_v1.js')}}"></script>
|
|
|
|
</head>
|
|
<body>
|
|
|
|
<div class="row">
|
|
<div class="column left">
|
|
<h2>Settings</h2>
|
|
|
|
<h3>Position</h3>
|
|
<p>
|
|
x: <input type="number" id="x_abs"><br>
|
|
y: <input type="number" id="y_abs"><br>
|
|
z: <input type="number" id="z_abs"><br>
|
|
</p>
|
|
<p>
|
|
<button type="button" onclick="setStagePositionsFromInput();">GO</button>
|
|
<button type="button" onclick="getStagePositions();">Update</button>
|
|
</p>
|
|
|
|
<p>
|
|
Doubleclick to position: <input type="checkbox" id="clickPositionCheck" checked><br>
|
|
<div class="clearfix">
|
|
<div class="left-col">FOV width:</div>
|
|
<div class="right-col">
|
|
<input type="text" id="fovXText" value="4100" size="4" onchange="fovX = Number(this.value); updateTextBoxes();">
|
|
</div>
|
|
</div>
|
|
|
|
<div class="clearfix">
|
|
<div class="left-col">FOV height:</div>
|
|
<div class="right-col">
|
|
<input type="text" id="fovYText" value="3146" size="4" onchange="fovY = Number(this.value); updateTextBoxes();">
|
|
</div>
|
|
</div>
|
|
</p>
|
|
|
|
|
|
<h3>Move</h3>
|
|
|
|
<p>
|
|
<b>Up/down/left/right:</b> <br>
|
|
Move stage in x-y. <br>
|
|
<b>PgUp/PgDn: </b> <br>
|
|
Move stage in z/focus.
|
|
</p>
|
|
|
|
<h4>Velocity:</h4>
|
|
<div class="clearfix">
|
|
<div class="left-col">x-y:</div>
|
|
<div class="right-col">
|
|
<input type="range" name="stageVelocityInput" min="50" max="200" value="100" oninput="stageVelocity = Number(this.value); updateTextBoxes();">
|
|
<input type="text" id="stageVelocityText" value="100" size="3" disabled>
|
|
</div>
|
|
</div>
|
|
<div class="clearfix">
|
|
<div class="left-col">z:</div>
|
|
<div class="right-col">
|
|
<input type="range" name="focusVelocityInput" min="10" max="100" value="20" oninput="focusVelocity = Number(this.value); updateTextBoxes();">
|
|
<input type="text" id="focusVelocityText" value="20" size="3" disabled>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<p>Scroll to focus: <input type="checkbox" id="scrollFocusCheck" checked></p>
|
|
|
|
</div>
|
|
|
|
<div class="column right">
|
|
<h2>Captures</h2>
|
|
<p>Not yet implemented.</p>
|
|
</div>
|
|
|
|
<div class="column middle">
|
|
<img src="/api/v1/stream" ondblclick="clickHotspotImage(event)" ;="" style="width: 100%;">
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html>
|