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