1jQuery( function( $ ){ 2 function send_data_from_ajax(){ 3 if (jQuery('#delivery').is(':checked')) { 4 var delivery = 1; 5 } else { 6 var delivery = 0; 7 } 8 if (jQuery('#montazh').is(':checked')) { 9 var montazh = 1; 10 } else { 11 var montazh = 0; 12 } 13 var tel = jQuery('#tel').val(); 14 var name = jQuery('#name').val(); 15 var agreem = jQuery('#product__agreement').val(); 16 var name_product = jQuery('.card__title').text() 17 console.log(agreem, tel, name); 18 console.log(jQuery('#product__agreement').prop('checked')); 19 20 if (jQuery('#product__agreement').prop('checked') == true & tel != '' && name != '') { 21 console.log("ÐÑÑ Ð¾ÑмеÑено"); 22 $.ajax({ 23 url : ajax_obj.ajaxurl, // обÑабоÑÑик 24 data : { 25 action: 'complete_order', 26 del: delivery, 27 mon: montazh, 28 telephone: tel, 29 n: name, 30 nprod: name_product 31 }, // даннÑе 32 type : 'POST', // Ñип запÑоÑа 33 success : function( data ){ 34 console.log("УÑпеÑно"); 35 jQuery('#response').text("СообÑение бÑло ÑÑпеÑно оÑпÑавлено."); 36 document.getElementById('response').className = ""; 37 document.getElementById('response').classList.add('response-success'); 38 }, 39 error : function(error){ console.log(error) } 40 }); 41 } else { 42 console.log("Ðе оÑмеÑен ÑекбокÑ"); 43 jQuery('#response').text("ÐожалÑйÑÑа, пÑовеÑÑÑе коÑÑекÑноÑÑÑ Ð²Ð²ÐµÐ´ÑннÑÑ Ð²Ð°Ð¼Ð¸ даннÑÑ ."); 44 document.getElementById('response').className = ""; 45 document.getElementById('response').classList.add('response-error'); 46 } 47 return; 48 } 49 50 $('#send-form').on('click', function() { 51 send_data_from_ajax(); 52 }); 53});
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.