Compare commits

..

No commits in common. "4d690e2a2a52f692a34835c8beb4fc3031416227" and "3b4cbd8ae1a613e34072df89a7cf63eedf161fd4" have entirely different histories.

3 changed files with 59 additions and 68 deletions

View File

@ -19,19 +19,19 @@ const FAIL_CRITERIA = {
};
class Dimensions {
constructor(width, depth, height) {
constructor(length, width, height) {
this.length = length;
this.width = width;
this.depth = depth;
this.height = height;
}
toString() {
return `${this.width}x${this.depth}x${this.height}`;
return `${this.length}x${this.width}x${this.height}`;
}
static fromDict(data) {
const { width, depth, height } = data;
return new Dimensions(width, depth, height);
const { length, width, height } = data;
return new Dimensions(length, width, height);
}
}

View File

@ -152,15 +152,6 @@ label {
cursor: pointer;
}
.card-photo label {
color: var(--text-one);
padding: 10px;
}
.measurement {
width: 100px;
}
.cage-selector {
display: flex;
flex-wrap: wrap;

View File

@ -46,9 +46,8 @@
<div class="card">
<div class="card-photo">
<label for="form-cage-measurements">Käfigmaße</label>
<form id="form-cage-measurements" class="form-measurements">
<input type="checkbox" id="tiaki"/>
<form class="form-measurements">
<div class="input-measurement">
<label for="width">Breite</label>
<input class="measurement" type="number" id="width">
@ -63,6 +62,7 @@
</div>
</form>
</div>
<label>Käfigmaße</label>
</div>
</div>
@ -86,8 +86,8 @@
<div class="container output-element" id="resultsDiv">
</div>
</div>
</div>
<script>
<script>
var labelNumRats = document.getElementById("labelNumRats");
@ -152,7 +152,7 @@
}
update();
</script>
</script>
</body>
</html>