PageSourceSearch

https://shisu.edu.cn/assets/js/project.js

js shisu.edu.cn collected 2026-10-01 10:37:09 UTC 2,572 bytes, 72 lines download raw bytes

1var project = function () {
2    return {
3        InitData: function () {
4            //关键字
5            var keyword = $("#in_form").find(".keyword").val();
6            if (keyword === "")
7                return;
8            website.load("divSearch_Main",
9                    "/WebSiteManage/Search/Index",
10                    {
11                        Keyword: keyword,
12                        PageSize: 10
13                    }
14                );
15        },
16        LoadMoreWaterfall: function () {
17            var pageIndex = $('#PageIndex').val();
18            pageIndex = parseInt(pageIndex) + 1;
19            website.load("divSearch_Main", "/WebsiteManage/Search/SearchResults",
20                {
21                    PageSize: pageIndex * 20,
22                    keyWord: $("#key").val(),
23                    option: $("#option").val()
24                });
25            $("#PageIndex").val(pageIndex);
26        },
27        LoadSearchList: function () {
28            //关键字
29            var keyword = $("#in_form").find(".keyword").val();
30            var option = $('input:radio[name=optionsRadios]:checked').val();
31            window.location.href = "/WebSiteManage/Search/Index?key=" + keyword + "&op=" + option;
32        },
33        reLoadUrl: function (url, link) { 
34            website.load("main-container", "/WebsiteManage/Home/ReloadUrl", { url: link });
35        }
36    }
37}();
38$(function () {
39    project.InitData();
40});
41
42$(function () {
43    $(".select").each(function () {
44        var s = $(this);
45        var z = parseInt(s.css("z-index"));
46        var dt = $(this).children("dt");
47        var dd = $(this).children("dd");
48        var _show = function () {
49            dd.slideDown(200);
50            dt.addClass("cur");
51            s.css("z-index", z + 1);
52        }; //展开效果
53        var _hide = function () {
54            dd.slideUp(200);
55            dt.removeClass("cur");
56            s.css("z-index", z);
57        }; //关闭效果
58        dt.click(function () { dd.is(":hidden") ? _show() : _hide(); });
59        dd.find("a").click(function () {
60            dt.html($(this).html());
61            _hide();
62        }); //选择效果(如需要传值,可自定义参数,在此处返回对应的“value”值 )
63        $("body").click(function (i) { !$(i.target).parents(".select").first().is(s) ? _hide() : ""; });
64    });
65})
66
67$(window).resize(function () {
68    var winw = $(window).width();
69    if (winw > 767) {
70        $('.mobile-nav').css('display', 'none');
71    }
72});

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.