PageSourceSearch

https://www.weidu.gov.cn/js/menu.js

js weidu.gov.cn collected 2026-10-02 21:43:37 UTC 1,176 bytes, 43 lines download raw bytes

1/*!
2 * 新点网站大师-菜单交互
3 * author: xiaolong
4 */
5
6(function(win, $) {
7
8    // 菜单
9    var $mainNav = $(".main-nav-items");
10    $(".navbar-toggle").on('click', function(event) {
11        if (!$mainNav.data("open")) {
12            $mainNav.slideUp();
13            $mainNav.data("open", true);
14        } else {
15            $mainNav.slideDown();
16            $mainNav.data("open", false);
17        }
18    });
19
20    $(window).on('resize', function(event) {
21        var w = $(this).outerWidth(true);
22        if (w >= 768) {
23            $mainNav.show();
24            $mainNav.data("open", false);
25        }
26    });
27
28    // 左侧菜单
29    var $leftMenu = $(".left-menu-wrap");
30    $leftMenu.on('click', '.left-menu-tt', function(event) {
31        var $parentDom = $(this).parent();
32        if ($parentDom.hasClass('open')) {
33            if ($(this).next(".left-menu")) {
34                $parentDom.removeClass('open').addClass('close');
35            }
36        } else {
37            if ($(this).next(".left-menu")) {
38                $parentDom.removeClass('close').addClass('open');
39            }
40        }
41    });
42
43}(this, jQuery));

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.