Lightbox fuer Grundriss-Bilder im Bereich Raumaufteilung hinzugefuegt

This commit is contained in:
2026-05-10 10:16:52 +02:00
parent bf42d8bab6
commit 62d775cc4a
12 changed files with 46 additions and 5 deletions

View File

@@ -50,6 +50,14 @@ $(function () {
$("#lightbox").addClass("open");
$("body").css("overflow", "hidden");
});
// Lightbox floor plan images in Raumaufteilung
$(document).on("click", ".floor-plan img[data-img]", function () {
var src = $(this).data("img");
$("#lightboxImg").attr("src", src);
$("#lightbox").addClass("open");
$("body").css("overflow", "hidden");
});
$("#lightboxClose, #lightbox").on("click", function (e) {
if (e.target === this) {
$("#lightbox").removeClass("open");