document.addEventListener("DOMContentLoaded", function () { const images = document.querySelectorAll(".show-image"); images.forEach(function (image) { image.addEventListener("click", function () { const targetId = image.getAttribute("data-target"); const container = document.getElementById(targetId); if (container) { container.classList.toggle("active"); } }); }); });