1 2 $(document).ready(function () { 3 console.log("123"); 4 var searchboxID = "#txtSearch"; 5 $('#srcButton').click(function () { 6 $(searchboxID).keyup(); 7 }); 8 9 $(searchboxID).keyup(function (event) { 10 if (event.keyCode != 13 && event.keyCode != 37 && event.keyCode != 39) { 11 if ($.trim($(searchboxID).val()).length > 2) { 12 13 delay(function () { 14 var options = {}; 15 options.url = '/tr/Ferre/Search', 16 options.type = "POST"; 17 options.data = "{searchKey:'" + $(searchboxID).val() + "'}", 18 options.contentType = "application/json; charset=utf-8", 19 options.success = function (result) { 20 21 $("#searchDiv").html(result); 22 $("#searchDiv").show(); 23 }; 24 options.error = function (err) { 25 if (err.status == 500) { 26 console.log("HATA"); 27 window.location.href = "/tr/Ferre/Anasayfa"; 28 } else { 29 if (err.status != 0) { 30 alert(err.statusText); 31 } 32 } 33 }; 34 $.ajax(options); 35 }, 500); 36 } else { 37 $("#searchDiv").hide(); 38 } 39} 40}); 41}); 42 43 var delay = (function () { 44 var timer = 0; 45 return function (callback, ms) { 46 clearTimeout(timer); 47 timer = setTimeout(callback, ms); 48}; 49})(); 50 51 $(function () { 52 $("#txtSearch").click(function () { 53 console.log("click yaptı"); 54 if ($("#txtSearch").val() == "Detaylı ara?") { 55 $("#txtSearch").val(""); 56 } 57 }); 58 $("#txtSearch").blur(function () { 59 if ($("#txtSearch").val().trim() == "") { 60 $("#txtSearch").val("Detaylı ara?"); 61 } 62}); 63});
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.