Update inputs from JS on document load

This commit is contained in:
Joel Collins 2018-11-09 16:48:05 +00:00
parent 740bf8fb68
commit 3a35e7f03c
2 changed files with 9 additions and 6 deletions

View file

@ -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;