1function mailform_js_set() { 2 3 let mailform = document.querySelector( 'form#mail_form' ); 4 5 if ( mailform === null ) { 6 return; 7 } 8 9 10 let form_id = mailform.getAttribute( 'data-form-id' ); 11 let include_js = document.querySelector( '#wprm-include-js' ); 12 13 let url = include_js.getAttribute( 'src' ); 14 url = url.replace( /plugins\/responsive-mailform\/.+/gi, 'plugins/responsive-mailform/js/mailform-js.php' ); 15 16 let script = document.createElement( 'script' ); 17 script.src = url + '?form_id=' + form_id; 18 script.id = 'mailform-js'; 19 document.body.appendChild( script ); 20 21} 22 23 24 25 26if ( document.readyState === 'loading' ) { 27 document.addEventListener( 'DOMContentLoaded', function() { 28 mailform_js_set(); 29 }, false ); 30} else { 31 mailform_js_set(); 32}
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.