From 3a35e7f03cc137232020ccecf14382b46df396ee Mon Sep 17 00:00:00 2001 From: Joel Collins Date: Fri, 9 Nov 2018 16:48:05 +0000 Subject: [PATCH] Update inputs from JS on document load --- openflexure_microscope/api/static/main_v1.js | 3 +++ openflexure_microscope/api/templates/index_v1.html | 12 ++++++------ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/openflexure_microscope/api/static/main_v1.js b/openflexure_microscope/api/static/main_v1.js index 5d3f02b2..24d903d8 100644 --- a/openflexure_microscope/api/static/main_v1.js +++ b/openflexure_microscope/api/static/main_v1.js @@ -29,11 +29,14 @@ var fovY = 3146; window.onload = function() { getStagePositions() + updateTextBoxes() } function updateTextBoxes() { document.getElementById('stageVelocityText').value = stageVelocity; + document.getElementById('stageVelocityInput').value = stageVelocity; document.getElementById('focusVelocityText').value = focusVelocity; + document.getElementById('focusVelocityInput').value = focusVelocity; document.getElementById('fovXText').value = fovX; document.getElementById('fovYText').value = fovY; diff --git a/openflexure_microscope/api/templates/index_v1.html b/openflexure_microscope/api/templates/index_v1.html index 1dd35927..9f75dd62 100644 --- a/openflexure_microscope/api/templates/index_v1.html +++ b/openflexure_microscope/api/templates/index_v1.html @@ -28,14 +28,14 @@
FOV width:
- +
FOV height:
- +

@@ -54,15 +54,15 @@
x-y:
- - + +
z:
- - + +