This commit is contained in:
parent
cb71f61a91
commit
154f550775
@ -346,16 +346,16 @@ function formatCriteria(criteria) {
|
||||
function updateCageCheck() {
|
||||
labelNumRats.innerHTML = i18next.t("cage-for-x-rats", {"num_rats": ratSlider.value});
|
||||
|
||||
const width = inputWidth.value
|
||||
const depth = inputDepth.value
|
||||
const height = inputHeight.value
|
||||
const width = inputWidth.value;
|
||||
const depth = inputDepth.value;
|
||||
const height = inputHeight.value;
|
||||
const dimensions = new Dimensions(width / 100, depth / 100, height / 100);
|
||||
const validator = new Validator();
|
||||
const numRats = ratSlider.value;
|
||||
const numFullFloors = fullFloorNum.value;
|
||||
|
||||
|
||||
const failed_checks = validator.cageCheck(dimensions, numRats,);
|
||||
const failed_checks = validator.cageCheck(dimensions, numRats, numFullFloors);
|
||||
let resultsDiv = document.getElementById("resultsDiv");
|
||||
|
||||
const result = getResultFromChecks(failed_checks);
|
||||
|
Loading…
x
Reference in New Issue
Block a user