.
This commit is contained in:
@@ -20,6 +20,26 @@
|
|||||||
const gewerbeHouse = ["Gewerbegebäude", "Mischgebäude"];
|
const gewerbeHouse = ["Gewerbegebäude", "Mischgebäude"];
|
||||||
|
|
||||||
|
|
||||||
|
$: {
|
||||||
|
|
||||||
|
ausnahme = ((leerStand === "mehr als 30") || (heizungsAlter === "< 3") || (baujahr === "vor 1978" && einheiten === "bis 4 Wohneinheiten" && sanierungsstatus === "unsaniert"))
|
||||||
|
? true
|
||||||
|
: false;
|
||||||
|
|
||||||
|
oneBOX = ((ausnahme === true) && (gebaeudetyp !== "Gewerbegebäude") && (gebaeudetyp !== "Mischgebäude")) ||
|
||||||
|
(!twoBoxReason.includes(anlass) && (gebaeudetyp !== "Mischgebäude")) ||
|
||||||
|
((gebaeudetyp === "Gewerbegebäude") && (leerStand === "mehr als 30"))
|
||||||
|
? true
|
||||||
|
: false;
|
||||||
|
|
||||||
|
threeBOX = ((ausnahme === true) && (gebaeudetyp === "Mischgebäude") && (twoBoxReason.includes(anlass) && (leerStand != "mehr als 30")))
|
||||||
|
? true
|
||||||
|
: false;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function getBoxes(){
|
function getBoxes(){
|
||||||
if(twoBoxReason.includes(anlass)){
|
if(twoBoxReason.includes(anlass)){
|
||||||
document.getElementById('firstrow')?.classList.remove('sm:grid-cols-2');
|
document.getElementById('firstrow')?.classList.remove('sm:grid-cols-2');
|
||||||
@@ -36,7 +56,8 @@ if(oneBOX===true){
|
|||||||
document.getElementById('thirdrow')?.classList.remove('md:grid-cols-6');
|
document.getElementById('thirdrow')?.classList.remove('md:grid-cols-6');
|
||||||
document.getElementById('thirdrow')?.classList.remove('md:grid-cols-4');
|
document.getElementById('thirdrow')?.classList.remove('md:grid-cols-4');
|
||||||
document.getElementById('thirdrow')?.classList.add('grid-cols-1');
|
document.getElementById('thirdrow')?.classList.add('grid-cols-1');
|
||||||
}else if(threeBOX===true){
|
}
|
||||||
|
else if(threeBOX===true){
|
||||||
console.log('THREE');
|
console.log('THREE');
|
||||||
document.getElementById('thirdrow')?.classList.remove('grid-cols-1');
|
document.getElementById('thirdrow')?.classList.remove('grid-cols-1');
|
||||||
document.getElementById('thirdrow')?.classList.remove('md:grid-cols-4');
|
document.getElementById('thirdrow')?.classList.remove('md:grid-cols-4');
|
||||||
@@ -49,28 +70,9 @@ else{
|
|||||||
document.getElementById('thirdrow')?.classList.remove('md:grid-cols-6');
|
document.getElementById('thirdrow')?.classList.remove('md:grid-cols-6');
|
||||||
document.getElementById('thirdrow')?.classList.add('md:grid-cols-4');
|
document.getElementById('thirdrow')?.classList.add('md:grid-cols-4');
|
||||||
}
|
}
|
||||||
console.log(!twoBoxReason.includes(anlass));
|
|
||||||
console.log(oneBOX);
|
|
||||||
|
|
||||||
|
//console.log(!twoBoxReason.includes(anlass)&& (gebaeudetyp != "Mischgebäude"));
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
$: {
|
|
||||||
|
|
||||||
|
|
||||||
ausnahme = ((leerStand === "mehr als 30") || (heizungsAlter === "< 3") || (baujahr === "vor 1978" && einheiten === "bis 4 Wohneinheiten" && sanierungsstatus === "unsaniert"))
|
|
||||||
? true
|
|
||||||
: false;
|
|
||||||
|
|
||||||
oneBOX = ((ausnahme === true) && (gebaeudetyp != "Gewerbegebäude") && (gebaeudetyp != "Mischgebäude")) ||
|
|
||||||
(!twoBoxReason.includes(anlass) && (gebaeudetyp != "Mischgebäude")) ||
|
|
||||||
((gebaeudetyp === "Gewerbegebäude") && (leerStand === "mehr als 30"))
|
|
||||||
? true
|
|
||||||
: false;
|
|
||||||
|
|
||||||
threeBOX = ((ausnahme === true) && (gebaeudetyp === "Mischgebäude") && (twoBoxReason.includes(anlass) && (leerStand != "mehr als 30")))
|
|
||||||
? true
|
|
||||||
: false;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -436,22 +438,4 @@ select option{font-family: "immo Sans",sans-serif;}
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user