1function showResponse(responseText, statusText, xhr, $form) { 2 obj = jQuery.parseJSON(responseText); 3 if (obj.result == 0) { 4 $('#speedForm').html("<div class='ok'>ÐапÑÐ¾Ñ ÑÑпеÑно оÑпÑавлен !</div> "); 5 6 } else { 7 8 var str = "ÐÑибки:<br />"; 9 var length = obj.data.length; 10 for (var i = 0; i < length; i++) { 11 str = str + obj.data[i] + "<br />"; 12 } 13 $("#errorsContainter").html(str); 14 } 15} 16 17function sendform() { 18 $('#errorsContainter').html('<img src="<?=SITE_TEMPLATE_PATH;?>/resources/img/fancybox_loading.gif'); 19 $("#orderForm").ajaxForm({ 20 success:showResponse 21 }).submit(); 22} 23 24 25$(document).ready(function () { 26 27 $('#speedForm input').keypress(function (e) { 28 if (e.which == 13) { 29 sendform(); 30 } 31 }); 32 33 $('#speedForm #buttonSubmit').click(function () { 34 sendform(); 35 }); 36 37 $(".fancyboxAjax").fancybox( 38 { 39 type:"ajax", 40 padding:0, 41 'speedIn':500, 42 'speedOut':300 43 } 44 ) 45 46 //УказÑваеÑÑÑ Ð¿Ð°ÑамеÑÑÑ Ð·Ð°ÐºÐ°Ð·Ð° Ð´Ð»Ñ popup 47 productPrice = $("#product-data").attr('data-price'); 48 productImg = $("#product-data").attr('data-img-url'); 49 $('#cardProductPrice').html(productPrice); 50 $('#cardProductImg img').attr('src', productImg); 51 console.log('productPrice: ' + productPrice); 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.