Merge pull request #271 from IBCornelsen/UMBE

Widget test
This commit is contained in:
Jens Cornelsen
2025-01-04 17:09:33 +01:00
committed by GitHub
2 changed files with 4 additions and 5 deletions

View File

@@ -35,6 +35,10 @@
allowedReason.includes(anlass) && allowedReason.includes(anlass) &&
allowedTypes.includes(gebaeudetyp) && (leerStand === "bis 30") && (heizungsAlter === ">= 3"); allowedTypes.includes(gebaeudetyp) && (leerStand === "bis 30") && (heizungsAlter === ">= 3");
} }
if ((gebaeudetyp || anlass || einheiten || sanierungsstatus || baujahr || heizungsAlter || leerStand) && window.parent) {
window.parent.postMessage("", "*")
}
} }
</script> </script>

View File

@@ -1,14 +1,9 @@
--- ---
import Layout from "#layouts/WidgetLayout.astro";
import WelcherAusweisWidget from "#widgets/WelcherAusweisWidget.svelte"; import WelcherAusweisWidget from "#widgets/WelcherAusweisWidget.svelte";
const { vermittler } = Astro.params; const { vermittler } = Astro.params;
--- ---
<Layout title="Welcher Energieausweis? - Widget">
<WelcherAusweisWidget client:load/> <WelcherAusweisWidget client:load/>
</Layout>