Étiquette : Énergie solaire

    Demander un devis

    window.addEventListener("load", () => { const openDevisBtns = document.querySelectorAll("[open-devis], .open-devis a.theme-btn.btn-style-eleven, .header-style-one .upper-row .link-box a, .open-devis .link-box a, .open-devis .pricing-block a") ?? null //.open-devis .owl-item a.theme-btn const devis = document.querySelector(".devis") ?? null const toggleDevis = () => { const closeDevis = document.querySelector(".devis-close") ?? null document.querySelector('.devis').classList.remove("closed") closeDevis.addEventListener("click", () => { document.querySelector('.devis').classList.add("closed") }) } if(openDevisBtns != null){ openDevisBtns.forEach(btn => { btn.addEventListener("click", (e) => { e.preventDefault() toggleDevis() }) }) } const open_video_popup_presentation_btns = document.querySelectorAll(".open-presentation-gbs .image-box") ?? null const video_popup_container = document.querySelector(".video-popup-container") ?? null const iframe_popup = document.querySelector("#YoutubeGreenBoxPresentation iframe") if(iframe_popup.src == "") iframe_popup.setAttribute("src", iframe_popup.getAttribute("data-src")) const togglePopup = () => { const closePopup = document.querySelector(".video-popup-close") ?? null document.querySelector('.video-popup-container').classList.add("show") closePopup.addEventListener("click", () => { document.querySelector('.video-popup-container').classList.remove("show") }) } if(open_video_popup_presentation_btns != null){ open_video_popup_presentation_btns.forEach(btn => { btn.addEventListener("click", (e) => { e.preventDefault() togglePopup() }) }) } })