From 6b964c81a88fdddc72733c4a433f1a84d0441772 Mon Sep 17 00:00:00 2001 From: moanos Date: Sat, 20 Jul 2024 08:21:25 +0200 Subject: [PATCH] feat: do checks with correct units --- src/index.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/index.html b/src/index.html index 9debc8f..18aba53 100644 --- a/src/index.html +++ b/src/index.html @@ -163,7 +163,11 @@ } function update() { - var failed_checks = cageCheck(savicSuiteRoyaleDim, ratSlider.value, fullFloorNum.value); + const width = inputWidth.value / 100 + const depth = inputDepth.value / 100 + const height = inputHeight.value / 100 + const dimensions = new Dimensions(width, depth, height) + var failed_checks = cageCheck(dimensions, ratSlider.value, fullFloorNum.value); var resultsDiv = document.getElementById("resultsDiv"); resultsDiv.innerHTML = `Ergebnis`;