feat: do checks with correct units

This commit is contained in:
moanos [he/him] 2024-07-20 08:21:25 +02:00
parent fb83a94d4b
commit 6b964c81a8

View File

@ -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 = `<strong>Ergebnis</strong>`;