1document.addEventListener('DOMContentLoaded', function () { 2 3 // Créer le popup 4 const overlay = document.createElement('div'); 5 overlay.id = 'mfest-popup-overlay'; 6 overlay.innerHTML = ` 7 <div id="mfest-popup-inner"> 8 <button id="mfest-popup-close">â</button> 9 <iframe id="mfest-popup-iframe" src="" frameborder="0"></iframe> 10 </div> 11 `; 12 document.body.appendChild(overlay); 13 14 overlay.addEventListener('click', function (e) { 15 if (e.target === overlay || e.target.id === 'mfest-popup-close') { 16 closePopup(); 17 } 18 }); 19 20 document.addEventListener('keydown', function (e) { 21 if (e.key === 'Escape') closePopup(); 22 }); 23 24 function closePopup() { 25 overlay.classList.remove('active'); 26 document.getElementById('mfest-popup-iframe').src = ''; 27 document.body.style.overflow = ''; 28 } 29 30 // Exposer la fonction globalement pour Smart Slider 31 window.mfestOpenPopup = function(url) { 32 document.getElementById('mfest-popup-iframe').src = url; 33 overlay.classList.add('active'); 34 document.body.style.overflow = 'hidden'; 35 }; 36});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.