1const show = id => { 2 const dialog = document.getElementById(id); 3 dialogPolyfill.registerDialog(dialog); 4 dialog.showModal(); 5} 6const closeDialog = id => { 7 const dialog = document.getElementById(id); 8 dialog.querySelectorAll('iframe').forEach(i => { 9 const source = i.src 10 i.src = '' 11 i.src = source 12 }) 13 dialog.close(); 14} 15 16// section for modal remote video 17 18const dialogs = document.querySelectorAll("dialog.modal-remote-video"); 19 20dialogs.forEach(dialog=>{ 21 22 let sibling = dialog.nextElementSibling; 23 while (sibling) { 24 if (sibling.classList.contains('show-modal')) { 25 sibling.addEventListener('click', () => { 26 document.body.appendChild(dialog); 27 dialog.showModal(); 28 }); 29 break; 30 } 31 sibling = sibling.nextElementSibling; 32 } 33 const closeModalButton = dialog.querySelector(".close-modal"); 34 closeModalButton.addEventListener('click', () => { 35 dialog.querySelectorAll('iframe').forEach(i => { 36 const source = i.src; 37 i.src = ''; 38 i.src = source; 39 }); 40 dialog.close('close dialog'); 41 }); 42}); 43
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.