PageSourceSearch

http://www.sjwj.com/js/searchtop.js?t=20261006040601718718

js sjwj.com collected 2026-10-07 04:07:24 UTC 1,642 bytes, 47 lines download raw bytes

1(function() {
2    var top_search_btn = $('#top_search_btn'),
3        txt_top_search = $('#txt_top_search'),
4        defaultTxt = txt_top_search.attr('default'),
5        searchItems = $('.search-item').find('a'),
6        url = "http://so.sjwj.com/Supply";
7
8    searchItems.click(function() {
9        searchItems.removeAttr('class');
10        var me = $(this);
11        me.attr('class', 'selected');
12        url = me.attr('url');
13    });
14    txt_top_search.bind('click focus', function() {
15        $("#txt_top_search").attr("style", "color:#333333;");
16        if (defaultTxt === $.trim(txt_top_search.val())) {
17            txt_top_search.val('');
18        }
19    });
20    txt_top_search.blur(function() {
21        $("#txt_top_search").attr("style", "color:#999999;");
22        if ('' === $.trim(txt_top_search.val())) {
23            txt_top_search.val(defaultTxt);
24        }
25    });
26    top_search_btn.click(function() {
27        var key = $.trim(txt_top_search.val());
28        if (key == "" || key == defaultTxt) {
29            txt_top_search.val("");
30            layer.msg('请输入关键字', { icon: 2 });
31            $('#txt_top_search').focus();
32            return false;
33        }
34        if (key.length < 2) {
35            layer.msg('请输入至少2个字符', { icon: 2 });
36            return false;
37        }
38        key=stripscript(key);
39        window.open(url + "-" + encodeURIComponent(key)+".html", "", "", "");
40        return false;
41    });
42    $("#txt_top_search").keypress(function(event) {
43        if (event.keyCode == 13) {
44            top_search_btn.click();
45        }
46    });
47} ());

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.