1const openModalDialog = (target) => { 2 const modal = target.querySelector('.modal-dialog') 3 modal.classList.add('active') 4} 5 6const closeModalDialog = (target) => { 7 const modal = target.querySelector('.modal-dialog') 8 modal.classList.remove('active') 9} 10 11const closeModalDialogInternal = () => { 12 const buttons = document.querySelectorAll('.modal-dialog .modal-dialog__header i.fa-xmark') 13 buttons.forEach((button) => { 14 button.addEventListener('click', (event) => { 15 const modal = event.currentTarget.closest('.wp-block-form-home-pme') 16 if (typeof closeModalDialog === 'function') { 17 closeModalDialog(modal) 18 } 19 }) 20 }) 21} 22 23document.addEventListener('DOMContentLoaded', () => { 24 closeModalDialogInternal() 25})
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.