1layui.use(['laytpl', 'util', 'layer'], function () { 2 var layer = layui.layer; 3 var laytpl = layui.laytpl; 4 /*æç´¢æ¡ç¸å ³è¯å è½½*/ 5 var bdkeyword = ""; 6 $(".indexSearch input").keyup(function (e) { 7 if (e.keyCode == 13) { 8 window.open($(".indexSearch .btn").attr("href"), "_blank"); 9 } else { 10 $(".indexSearch .btn").attr("href", "https://www.baidu.com/s?ie=utf-8&wd=" + $(this).val()); 11 loadKeyword($(this)); 12 } 13 }); 14 $(".indexSearch input").click(function (e) { 15 if ($(this).val()) { 16 if (bdkeyword != $(this).val()) { 17 loadKeyword($(this)); 18 } else { 19 if ($(".selectul").html() != "") { 20 $(".selectul").show(); 21 } 22 } 23 } 24 return false; 25 }); 26 27 28 $(document).click(function (e) { 29 $(".selectul").hide(); 30 }); /*é¦é¡µæ¨èæ æ¬æµ®åå±å¼ä¸ææ¡*/ 31 $(".indexWebList li a .xl").hover(function () { 32 $(this).parents("li").find(".info").show(); 33 $(this).parents("li").find(".xl").addClass("xlhover") 34 }); 35 $(".indexWebList li").mouseleave(function () { 36 $(this).find(".info").hide(); 37 $(this).find(".xl").removeClass("xlhover") 38 }); 39 $(".indexWebList li a .xl").click(function (e) { 40 e.preventDefault(); 41 }); 42});
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.