1jQuery(document).ready(function($) { 2 3 $(".red-tab-inner").tabs(); 4 5 $(".red-toggle").each( function () { 6 if($(this).attr('data-id') == 'closed') { 7 $(this).accordion({ header: '.red-toggle-title', collapsible: true, active: false }); 8 } else { 9 $(this).accordion({ header: '.red-toggle-title', collapsible: true}); 10 } 11 }); 12 13 14}); 15 16function red_send_mail( form, container){ 17 jQuery('#red-name').removeClass('invalid'); 18 jQuery('#red-email').removeClass('invalid'); 19 20 jQuery(container).html(''); 21 22 jQuery.ajax({ 23 url: ajaxurl, 24 data: '&action=red_send_contact&'+jQuery( form ).serialize(), 25 type: 'POST', 26 dataType: "json", 27 cache: false, 28 success: function (json) { 29 30 if(json.contact_name ){ 31 jQuery('#red-name').addClass('invalid'); 32 jQuery(container).append(json.contact_name); 33 } 34 35 if(json.contact_email ){ 36 jQuery('#red-email').addClass('invalid'); 37 jQuery(container).append(json.contact_email); 38 } 39 40 if(json.message ){ 41 jQuery(container).append(json.message); 42 } 43 44 45 46 } 47 }); 48 49}
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.