1$(document).ready(function() { 2 3 4 // ÐбÑабоÑка ввода поиÑковой ÑÑÐ°Ð·Ñ Ð² поле поиÑка 5 $('body').on('keyup', 'input[name=search]', function() { 6 7 var text = $(this).val(); 8 if (text.length >= 2) { 9 var url = $(this).closest('form').attr('action'); 10 $.ajax({ 11 type: "POST", 12 url: url, 13 data: { 14 fastsearch: "true", 15 text: text 16 }, 17 dataType: "json", 18 cache: false, 19 success: function(data) { 20 if ('success' == data.status && data.item.items.catalogItems.length > 0) { 21 $('.fastResult').html(data.html); 22 $('.fastResult').show(); 23 $('.wraper-fast-result').show(); 24 } 25 else { 26 $('.fastResult').hide(); 27 } 28 } 29 }); 30 } else { 31 $('.fastResult').hide(); 32 } 33 }); 34 35 // клик вне поиÑка 36 $(document).mousedown(function(e) { 37 var container = $(".wraper-fast-result"); 38 if (container.has(e.target).length === 0 && $(".search-block").has(e.target).length === 0) { 39 container.hide(); 40 } 41 }); 42 43});
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.