|
|
|
|
@@ -3,6 +3,10 @@
|
|
|
|
|
import WidgetCardTemplate from "#components/widgets/immowelt/WidgetCardTemplate_immowelt.svelte";
|
|
|
|
|
import { PRICES } from "#lib/constants.js";
|
|
|
|
|
import { Enums } from "#lib/client/prisma";
|
|
|
|
|
|
|
|
|
|
let ausnahme: boolean = false;
|
|
|
|
|
let oneBOX: boolean = false;
|
|
|
|
|
let threeBOX: boolean = false;
|
|
|
|
|
|
|
|
|
|
let gebaeudetyp: string = "bitte auswählen";
|
|
|
|
|
let anlass: string = "bitte auswählen";
|
|
|
|
|
@@ -16,14 +20,8 @@
|
|
|
|
|
const gewerbeHouse = ["Gewerbegebäude", "Mischgebäude"];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let ausnahme: boolean = false;
|
|
|
|
|
let oneBOX: boolean = false;
|
|
|
|
|
let threeBOX: boolean = false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function getBoxes(){
|
|
|
|
|
if(twoBoxReason.includes(anlass)){
|
|
|
|
|
|
|
|
|
|
document.getElementById('firstrow')?.classList.remove('sm:grid-cols-2');
|
|
|
|
|
document.getElementById('firstrow')?.classList.add('sm:grid-cols-3');
|
|
|
|
|
}else{
|
|
|
|
|
@@ -44,15 +42,16 @@ if(oneBOX===true){
|
|
|
|
|
document.getElementById('thirdrow')?.classList.remove('md:grid-cols-4');
|
|
|
|
|
|
|
|
|
|
document.getElementById('thirdrow')?.classList.add('md:grid-cols-6');
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
else{
|
|
|
|
|
console.log('FOUR');
|
|
|
|
|
document.getElementById('thirdrow')?.classList.remove('grid-cols-1');
|
|
|
|
|
document.getElementById('thirdrow')?.classList.remove('md:grid-cols-6');
|
|
|
|
|
document.getElementById('thirdrow')?.classList.add('md:grid-cols-4');
|
|
|
|
|
}
|
|
|
|
|
console.log(!twoBoxReason.includes(anlass));
|
|
|
|
|
console.log(oneBOX);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@@ -64,7 +63,7 @@ ausnahme = ((leerStand === "mehr als 30") || (heizungsAlter === "< 3") || (bau
|
|
|
|
|
: false;
|
|
|
|
|
|
|
|
|
|
oneBOX = ((ausnahme === true) && (gebaeudetyp != "Gewerbegebäude") && (gebaeudetyp != "Mischgebäude")) ||
|
|
|
|
|
((!twoBoxReason.includes(anlass)) && (gebaeudetyp != "Mischgebäude") && (gebaeudetyp != "bitte auswählen")) ||
|
|
|
|
|
(!twoBoxReason.includes(anlass) && (gebaeudetyp != "Mischgebäude")) ||
|
|
|
|
|
((gebaeudetyp === "Gewerbegebäude") && (leerStand === "mehr als 30"))
|
|
|
|
|
? true
|
|
|
|
|
: false;
|
|
|
|
|
@@ -396,6 +395,7 @@ threeBOX = ((ausnahme === true) && (gebaeudetyp === "Mischgebäude") && (twoBo
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
*{font-family: "immo Sans";}
|
|
|
|
|
select option{font-family: "immo Sans",sans-serif;}
|
|
|
|
|
|
|
|
|
|
#OEA_widget {
|
|
|
|
|
@apply min-w-[320px] max-w-[1920px] p-[4px]
|
|
|
|
|
|