1jQuery( document ).ready(function() { 2 document.addEventListener('wpcf7mailsent', function (event) { 3 var inputs = event.detail.inputs; 4 var downloads = []; 5 var settings = []; 6 for ( var i = 0; i < inputs.length; i++ ) { 7 if ( 'your-email' === inputs[i].name ) { 8 var email = inputs[i].value ; 9 } 10 if("ebd_downloads[]" === inputs[i].name){ 11 downloads.push(inputs[i].value); 12 } 13 if('ebd_settings[]' === inputs[i].name){ 14 settings.push(inputs[i].value); 15 } 16 } 17 var id = event.detail.id; 18 if(id) 19 id = '#' + id; 20 else 21 id = event.detail.apiResponse.into; 22 23 var data = { 24 action: 'ebd_inline_links', 25 email: email, 26 downloads: downloads, 27 settings: settings, 28 security: ebd_inline.ajax_nonce 29 }; 30 jQuery.post(ebd_inline.ajaxurl, data, function (data) { 31 data = JSON.parse(data); 32 if(data.download){ 33 window.location.href = data.url; 34 }else{ 35 jQuery('.wpcf7-response-output').show(); 36 jQuery(id).append(data.html); 37 } 38 39 } 40 ); 41 }, false); 42});
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.