PageSourceSearch

https://www.cifi.com.cn/js/map.js?v=20221115211500

js cifi.com.cn collected 2026-10-06 09:29:14 UTC 3,131 bytes, 101 lines download raw bytes

1$(function(){
2    // start鼠标经过
3    $(".maparea_w").hover(function(){
4        $(this).addClass("cur").siblings().removeClass("cur");
5         
6    },function(){
7        $(this).removeClass("cur");
8    })
9    //end
10    
11    map_show();
12    map_select();
13    map_cicle();
14    
15
16
17})
18
19
20function map_show(){
21     // start  判断下拉是否和地图标点是否等值? 等值显示否则隐藏
22    for(i=0;i<$(".clityselect dd a").length;i++){
23        $(".mapcicle").each(function(){
24            if($(".clityselect dd a").eq(i).data("title")==$(this).data("title")){
25                $(this).parent().addClass("on")
26            }
27        })
28        
29    }
30    $(".maparea_w").hide();
31    $(".maparea_w.on").show();
32    // end
33}
34
35function map_select(){
36    //start右侧下拉赋值
37    $(".maparea_w.on").click(function(){
38        var d_title=$(this).find(".mapcicle").data("title");
39        $(this).addClass("on1").siblings().removeClass("on1");
40
41        $(".clityselect dt p").text(d_title);
42
43        $(".clityselect dd a").each(function(){
44            if(d_title==$(this).data("title")){
45                $(".clityselect dt").attr({ "data-val": $(this).data("val") });
46                $("#province dd a").each(function () {
47                    var dd_title = $(this).attr("data-title");
48                    if (dd_title == d_title) {
49                        $("#PublicSearch_Html").html("");
50                        $(this).addClass("on").siblings().removeClass("on");
51                        var iscatid = $(this).attr("data-catid");
52                        var isportcity = $(this).attr("data-portcity");
53                        var isport = $(this).attr("data-port");
54                        //如果为栏目需要获取栏目下的城市
55                        if (iscatid == 'true') {
56                            getcityAll(1);
57                            //获取只有接口中有该省份时的城市信息
58                        } else if (isportcity == 'true') {
59                            getportcity();
60                        } else if (isportcity == 'changzu') {
61                            getzhangzuData();
62                        } else if (isport == 'true') {
63                            getportdata();
64                        } else {
65                            zhuzhaiAll(1);
66                        }
67                    }
68                })
69            }
70        })
71
72    })
73    //end
74}
75
76
77function map_cicle(){
78     //start右侧下拉点击左侧地图圆圈显示
79    $(".clityselect dd a").click(function(){
80        var d_title02=$(this).data("title");
81        //console.log(d_title02)
82        $(".maparea_w.on").each(function(){
83            $this=$(this);
84            if(d_title02==$this.find(".mapcicle").data("title")){
85                $this.addClass("on1").siblings().removeClass("on1");
86            }
87        })
88    })
89
90   //end
91    
92    // 圆圈默认值
93    $(".maparea_w.on").each(function(){
94        $this=$(this);
95        if($(".clityselect dt p").text()==$this.find(".mapcicle").data("title")){
96            $this.addClass("on1").siblings().removeClass("on1");
97        }
98    })
99}
100
101

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.