1jQuery(document).ready(function() { 2 jQuery("body").on("click", ".cf7p_result_btn", function() { 3 var $this = jQuery(this); 4 var form_id = $this.data("value"); 5 jQuery(this).parents('.wpcf7').find('.wpcf7-response-output').addClass('cf7p-hide-fields'); 6 jQuery.ajax({ 7 url: custom_call.ajaxurl, 8 type: "POST", 9 data: { 10 action: "cf7p_result_btn", 11 form_id: form_id, 12 }, 13 success: function(response) { 14 $this.parents('.wpcf7').find('.wpcf7-form').children().addClass('cf7p-hide-fields'); 15 $this.parents('.wpcf7').find('.wpcf7-form .cf7p_view_result').remove(); 16 $this.parents('.wpcf7').find('.wpcf7-form').append(response); 17 } 18 }); 19 }); 20 21 jQuery("body").on("click", ".cf7p-btf", function() { 22 var $this = jQuery(this); 23 jQuery(this).parents('.wpcf7').find('.wpcf7-response-output').removeClass('cf7p-hide-fields'); 24 if ($this.parents('.wpcf7').find('.wpcf7-form').children().hasClass('cf7p-hide-fields')) { 25 $this.parents('.wpcf7').find('.wpcf7-form').children().removeClass('cf7p-hide-fields'); 26 } 27 $this.parents('.wpcf7-form').find('.cf7p_view_result').addClass('cf7p-hide-fields'); 28 29 }); 30});
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.