PageSourceSearch

http://www.mdc.com.cn/assets/du2017/js/js_en.js

js mdc.com.cn collected 2026-10-08 14:38:26 UTC 6,500 bytes, 232 lines download raw bytes

1
2$(document).ready(function(){
3
4    $(document).on("mousewheel DOMMouseScroll", function (e) {
5        var delta = (e.originalEvent.wheelDelta && (e.originalEvent.wheelDelta > 0 ? 1 : -1)) ||  // chrome & ie
6                (e.originalEvent.detail && (e.originalEvent.detail > 0 ? -1 : 1));              // firefox
7        if (delta > 0) {
8            
9             $('.nav-wrap').removeClass('curr');
10
11        } else if (delta < 0) {
12            
13            $('.nav-wrap').addClass('curr');
14        }
15    });
16
17
18    $(".bmfnav li").hover(
19        function(){
20            var _thisdate=$(this).attr("date");
21            $('.dprow').hide();
22            if(!!_thisdate){
23                $('.'+_thisdate).show();
24                $('.downup').stop().show();
25            }
26        },function(){
27            $('.downup').hide();
28    })
29
30    $(".downup").hover(
31        function(){
32            $('.downup').show()
33        },function(){
34            $('.downup').hide();
35        });
36
37
38    $(".hasul").click(function(){
39        //$(".hasul").removeClass("active");
40        if(!$(this).hasClass("active")){
41            $(this).addClass("active");
42        }else{
43            $(this).removeClass("active");
44        }
45        
46    });
47
48    var winh = $(window).height(),winw = $(window).width();
49
50    $(".msidebar").css("minHeight", winh);
51    $(".menuicon").click(function(){
52        $(".sidebarleft").stop().animate({
53            left: 0
54        });
55        $("body").stop().animate({
56            left:"65%"
57        })
58        $(".alert-cover").show();
59    })
60
61    $(".alert-cover").on("click", function(){
62        $(".sidebarleft").stop().animate({
63            left: "-75%"
64        });
65        $("body").stop().animate({
66            left:0
67        })
68        $(".sidebarright").stop().animate({
69            right: "-75%"
70        });
71        $(".alert-cover").hide();
72    })
73
74    $(".header-search").click(function(){
75        $(".search-box-actionbar").toggle();
76        $(".search-box__form input").focus();
77    })
78
79    $(document).on("click",".detailedinfo-top",function(){
80        var obj = $(this).parents("li");
81        if(obj.hasClass("curr")){
82            obj.removeClass("curr");
83        }else{
84            obj.addClass("curr").siblings().removeClass("curr");
85        }
86        
87        $(".detailedinfo").stop().slideUp();
88        obj.find(".detailedinfo").stop().slideToggle();
89    })
90
91
92
93    // if(winw < 1024){
94    //     $(".dfrow,.selectbox").click(function(){
95    //         var obj = $(this);
96    //         $(".dfrowshow,.selectbox-secondary").stop().slideUp();
97    //         $(".dfrowshow,.selectbox-secondary").eq(obj.index()).stop().slideToggle();
98        
99    //     });
100
101    // }else{
102
103
104    //     $(".dfrow,.selectbox").hover(function(){
105    //         var obj = $(this);
106    //         obj.find(".dfrowshow,.selectbox-secondary").stop().slideDown();
107    //     },function(){
108    //         var obj = $(this);
109    //         obj.find(".dfrowshow,.selectbox-secondary").stop().slideUp();
110    //     });
111    // }
112
113    $(".jobs-a-J").click(function(){
114        var obj = $(this);
115        // obj.parents(".")
116        obj.parents(".jobs-warp").next().toggle();
117    })
118
119
120    $(".tabname").click(function(){
121        $(".tabname").parent().removeClass("active").find(".iconimg").removeClass("curr");
122        $(this).parent().addClass("active").find(".iconimg").addClass("curr");
123
124    });
125
126
127    $(".tabname2").click(function(){
128        if($(this).parent().hasClass("active")){
129            $(this).parent().removeClass("active");
130        }else{
131            $(this).parent().addClass("active");
132        }
133    })
134
135    
136    var msg = sessionStorage.getItem("data");
137    $(".style-con").eq(msg).hide();
138    $(".style-con2").eq(msg).hide();
139    $(".Style-switch-click:eq("+msg+")").addClass("curr").siblings().removeClass("curr");
140    $(".Style-switch-click").click(function(){
141        var obj = $(this);
142        var ind = obj.index();
143        obj.addClass("curr").siblings().removeClass("curr");
144        $(".style-con").show().eq(ind).hide();
145        $(".style-con2").show().eq(ind).hide();
146        sessionStorage.setItem("data", ind);
147        
148    })
149
150
151
152    $(document).on("click",".J-management-tit",function(){
153        $(this).toggleClass("curr");
154        $(this).next(".J-management-con").toggle();
155    })
156
157    $(document).on("click",".J-close",function(){
158        $(this).parent(".J-management-con").toggle().next(".J-management-tit").toggleClass("curr");
159    })
160
161
162
163    if(!$(".swiper-container").length == 0){
164    var swiper = new Swiper('.swiper-container', {
165        pagination: '.swiper-pagination',
166        nextButton: '.swiper-button-next',
167        prevButton: '.swiper-button-prev',
168        paginationClickable: true,
169        loop:true,
170        spaceBetween: 0,
171        paginationClickable: true,
172        autoplay: 4000
173    });
174    }
175
176    $(document).ready(function() {
177            //console.log(winw);
178            if(winw>750){
179                $('.npartner').bxSlider({
180                    slideWidth: 1200,
181                    minSlides: 5,
182                    maxSlides: 5,
183                    moveSlides: 1,
184                    pager: false,
185                    slideMargin: 20
186                });
187            }else{
188                $('.npartner').bxSlider({
189                    slideWidth: 1200,
190                    inSlides: 1,
191                    maxSlides: 1,
192                    moveSlides: 1,
193                    pager: false,
194                    slideMargin: 20
195                });
196            }
197        });
198
199    
200
201    $(document).ready(function() {  
202        $(".WeChat-a").hover(function(){
203            $(".WeChat-con").stop().slideDown();
204        },function(){
205            $(".WeChat-con").stop().slideUp();
206        })
207    })
208        
209
210})    
211
212
213
214Date.prototype.format = function(fmt)
215{
216    var o = {
217        "M+" : this.getMonth()+1,         //月份
218        "d+" : this.getDate(),          //日
219        "h+" : this.getHours(),          //小时
220        "m+" : this.getMinutes(),         //分
221        "s+" : this.getSeconds(),         //秒
222        "q+" : Math.floor((this.getMonth()+3)/3), //季度
223        "S" : this.getMilliseconds()       //毫秒
224    };
225    if(/(y+)/.test(fmt))
226        fmt=fmt.replace(RegExp.$1, (this.getFullYear()+"").substr(4 - RegExp.$1.length));
227    for(var k in o)
228        if(new RegExp("("+ k +")").test(fmt))
229            fmt = fmt.replace(RegExp.$1, (RegExp.$1.length==1) ? (o[k]) : (("00"+ o[k]).substr((""+ o[k]).length)));
230    return fmt;
231}
232

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.