PageSourceSearch

https://www.ybs.gov.cn/material/images/qita.js

js ybs.gov.cn collected 2026-10-02 17:08:23 UTC 4,105 bytes, 108 lines download raw bytes

1// 头部导航
2
3$('.wrapper_header_pub .wrapper_bottom_pub .navBar_pub .aNav_pub').click(function () {
4    $(this).addClass('active_pub').siblings().removeClass('active_pub');
5    var id = $(this).attr('id');
6    getAcrive(id);
7});
8$('.nemuArea_pub .aNav_mobile_pub').click(function () {
9    $(this).addClass('active_pub').siblings().removeClass('active_pub');
10    $('.nemuArea_pub').toggleClass('show_hide_pub');
11    $('.zhezhao_pub').toggleClass('show_hide_pub');
12    var id = $(this).attr('id');
13    getAcrive(id);
14});
15$('.menu_pub').click(function () {
16    $('.nemuArea_pub').toggleClass('show_hide_pub');
17    $('.zhezhao_pub').toggleClass('show_hide_pub');
18})
19$('.zhezhao_pub').click(function () {
20    $('.nemuArea_pub').toggleClass('show_hide_pub');
21    $('.zhezhao_pub').toggleClass('show_hide_pub');
22
23});
24
25
26
27
28// 搜索js
29$(function () {
30    $(".select_box").click(function (event) {
31        event.stopPropagation();
32        $(this).find(".option").toggle();
33        $(this).parent().siblings().find(".option").hide();
34    });
35    $(document).click(function (event) {
36        var eo = $(event.target);
37        if ($(".select_box").is(":visible") && eo.attr("class") != "option" && !eo.parent(".option").length)
38            $('.option').hide();
39    });
40     var check_id = 1;
41    $(".option li").click(function () {
42        var check_value = $(this).text();
43        check_id = $(this).attr("id");
44        var zlValue = $('.option li:eq(1)').html();
45        var bqValue = $('.option li:eq(2)').html();
46        $(this).parent().siblings(".select_txt").text(check_value);
47        $("#select_value").val(check_id);
48        if (check_value == zlValue) {
49            $('#searchPlaceholder').prop('placeholder', '请输入搜索关键字');
50        } else if (check_value == bqValue) {
51            $('#searchPlaceholder').prop('placeholder', '请输入搜索关键字');
52        } else {
53            $('#searchPlaceholder').prop('placeholder', '请输入搜索关键字');
54        }
55    });
56     $('#submit').click(function() {
57                if(!$('#searchPlaceholder').val()) {
58                    alert('请输入搜索内容')
59                    return
60                }
61                window.open('http://www.ybs.gov.cn/chifeng_dept_search/#/Door?keywords=' + $('#searchPlaceholder').val()+'&siteTag='+check_id+'&siteid=41')
62            })
63            $('#searchPlaceholder').bind('keyup', function(event) {
64                if (event.keyCode == "13") {
65                    $('#submit').click();
66                }
67            });
68});
69
70
71
72
73// 选项卡
74$(function () {
75    /*动态切换*/
76    $(".i_o_r_tabContent>div").first().show().siblings().hide();
77    $(".i_o_r_tab a").hover(function () {
78        $(this).addClass("se").siblings().removeClass("se");
79        $(".i_o_r_tabContent>div").eq($(this).index()).show().siblings().hide();
80    })
81    /*动态切换2*/
82    $(".i_o_r_tabContent2>div").first().show().siblings().hide();
83    $(".i_o_r_tab2 a").hover(function () {
84        $(this).addClass("se").siblings().removeClass("se");
85        $(".i_o_r_tabContent2>div").eq($(this).index()).show().siblings().hide();
86    })
87    /*动态切换3*/
88    $(".i_o_r_tabContent3>div").first().show().siblings().hide();
89    $(".i_o_r_tab3 a").hover(function () {
90        $(this).addClass("se").siblings().removeClass("se");
91        $(".i_o_r_tabContent3>div").eq($(this).index()).show().siblings().hide();
92    })
93    /*动态切换4*/
94    $(".i_o_r_tabContent4>div").first().show().siblings().hide();
95    $(".i_o_r_tab4 a").hover(function () {
96        $(this).addClass("se").siblings().removeClass("se");
97        $(".i_o_r_tabContent4>div").eq($(this).index()).show().siblings().hide();
98    })
99    /*动态切换5*/
100    $(".i_o_r_tabContent5>div").first().show().siblings().hide();
101    $(".i_o_r_tab5 a").hover(function () {
102        $(this).addClass("se").siblings().removeClass("se");
103        $(".i_o_r_tabContent5>div").eq($(this).index()).show().siblings().hide();
104    })
105});
106// 选项卡
107
108

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.