{ trigger.addEventListener("click", function (e) { e.stopPropagation(); // prevent triggering the document click modalImg.src = this.src; modalImg.alt = this.alt || ""; modal.classList.add("active"); }); }); document.addEventListener("click", function () { if (modal.classList.contains("active")) { modal.classList.remove("active"); modalImg.src = ""; modalImg.alt = ""; } }); }); Optional Accessories Opposing Blade Damper (OBD) Oper" /> { trigger.addEventListener("click", function (e) { e.stopPropagation(); // prevent triggering the document click modalImg.src = this.src; modalImg.alt = this.alt || ""; modal.classList.add("active"); }); }); document.addEventListener("click", function () { if (modal.classList.contains("active")) { modal.classList.remove("active"); modalImg.src = ""; modalImg.alt = ""; } }); }); Optional Accessories Opposing Blade Damper (OBD) Oper" />
Steel Designs Gold Series Features & Specifications Any Standard Design Any Standard Finish Any Supply Size Any Return Size Any Exhaust Fan Size Any Filter Frame Size Works with Steel Designs Accessories Comes with color matched mounting screws Typical Measurement Schematic Steel Designs document.addEventListener("DOMContentLoaded", function () { const modal = document.getElementById("portraitModal"); const modalImg = document.getElementById("portraitModalImg"); const triggers = document.querySelectorAll(".portrait-modal-trigger"); triggers.forEach(trigger => { trigger.addEventListener("click", function (e) { e.stopPropagation(); // prevent triggering the document click modalImg.src = this.src; modalImg.alt = this.alt || ""; modal.classList.add("active"); }); }); document.addEventListener("click", function () { if (modal.classList.contains("active")) { modal.classList.remove("active"); modalImg.src = ""; modalImg.alt = ""; } }); }); Optional Accessories Opposing Blade Damper (OBD) Oper