1// if(typeof $ == 'undefined') { 2// var $ = jQuery; // causing breakage and not being used, commenting out for now 3// } 4 5 6jQuery(document).ready(function() { 7 // setUpContactForm7(); 8 9 //jQuery('.biblesupersearch_dup_shortcode').show(); 10}) 11 12 13function setUpContactForm7() { 14 if(typeof biblesupersearch_cf7id == 'undefined' || !biblesupersearch_cf7id) { 15 return; 16 } 17 18 // alert('here'); 19 var idPart = 'wpcf7-f' + biblesupersearch_cf7id; 20 $('div[id^="' + idPart + '"] .wpcf7-response-output').remove(); 21 22 $('div[id^="' + idPart + '"]').on('wpcf7submit', function(e) { 23 var response = e.originalEvent.detail.apiResponse; 24 25 delete response.message; 26 27 $.ajax({ 28 url: biblesupersearch_config_options.apiUrl + 'api', 29 method: 'GET', 30 // data: e.detail.formData, 31 data: $('div[id^="' + idPart + '"] form').serialize(), 32 33 success: function(response, textStatus, xhr ) { 34 console.log('response', response); 35 window.location.hash = '#/c/' + response.hash; 36 }, 37 error: function(xhr, status, error) { 38 console.log(xhr); 39 40 var response = xhr.responseJSON; 41 42 console.log('response', response); 43 window.location.hash = '#/c/' + response.hash + '/1'; 44 } 45 }) 46 47 console.log(response); 48 49 // alert('submit'); 50 console.log('e', e); 51 52 e.preventDefault(); 53 return true; 54 }) 55 56 // $('.wpcf7').on('wpcf7submit', function() { 57 // alert('w submit'); 58 // }) 59}
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.