Compare commits

...

2 Commits

Author SHA1 Message Date
ecd7027bdd feat: Update on change in input fields
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2024-07-21 11:36:33 +02:00
75c814c057 feat: Rename to Käfigrechner 2024-07-21 11:36:05 +02:00

View File

@ -2,7 +2,7 @@
<html lang="en" xmlns="http://www.w3.org/1999/html">
<head>
<meta charset="UTF-8">
<title>Knastrechner</title>
<title>Käfigrechner</title>
<link rel="stylesheet" href="assets/css/style.css">
<script src="assets/calculator.js"></script>
</head>
@ -90,9 +90,11 @@
<script>
const inputWidth = document.getElementById("width");
inputWidth.onchange = update;
const inputDepth = document.getElementById("depth");
inputDepth.onchange = update;
const inputHeight = document.getElementById("height");
inputHeight.onchange = update;
const selectSavicSuiteRoyaleXL = document.getElementById("SavicSuiteRoyaleXL");
@ -171,7 +173,7 @@
const width = inputWidth.value
const depth = inputDepth.value
const height = inputHeight.value
const dimensions = new Dimensions(width/100, depth/100, height/100);
const dimensions = new Dimensions(width / 100, depth / 100, height / 100);
const failed_checks = cageCheck(dimensions, ratSlider.value, fullFloorNum.value);
console.log(failed_checks);
let resultsDiv = document.getElementById("resultsDiv");