history.scrollRestoration = 'manual'; var wd = {}; wd.WSN = "鍥涘窛鍐滃ぇ楂樼鍐滀笟鏈夐檺璐d换鍏徃"; wd.A_DISABLE = false; $(function() { wd.body = $("body"); if (isFrontEnv()) { $("a, img").removeAttr("title"); if (wd.A_DISABLE) { $("a").attr("href", "javascript:;"); } wd.body.addClass("wd"); wd.common(); wd.index(); setTimeout(function() { wd.body.addClass("wd-show"); }, 100); } else { wd.body.addClass("make"); $(window).load(function() { setInterval(function() { $(".w_fimg-000 img").each(function() { var alt = $(this).attr("alt"); if (alt == wd.WSN) { return; } var self = $(this); var titles = ["杩欐槸鎻忚堪淇℃伅", "Ltd", "group","鍏徃"]; $.each(titles, function(i,v) { if(alt.indexOf(v) != -1) { self.attr("title", wd.WSN).attr("alt", wd.WSN); } }); }); }, 1000); }); } }); wd.scroll_ani = function() { var window_height = $(window).height(); var body = $("body"); function handle() { var t = $(window).scrollTop(); var w = $(".w-scroll-ani:not(.scrolled)"); w.each(function(i) { var top = $(this).offset().top; if (top < (window_height + t - 100)) { setTimeout(function() { $(this).addClass("scrolled"); } .bind(this), i * 100); } }); if (window_height + t + 200 >= body.height()) { $(".w-scroll-ani:not(.scrolled)").each(function(i) { var top = $(this).offset().top; if (top > (body.height() - window_height)) { setTimeout(function() { $(this).addClass("scrolled"); } .bind(this), i * 100); } }); } } return { add: function(a) { $(a).addClass("w-scroll-ani"); return this.add; }, init: function() { this.add("div[id^='w_common_text-']"); this.add(".w_fimg-000:not('#w_fimg-1588148032942')"); this.add(".w_fbtn-001"); this.add(".w_ficon-001"); this.add(".w_fline-001"); this.add("div[class*='c_portalResProduct_detail']"); this.add(".c_portalResMessage_form-01001"); this.add(".c_portalResEbizads_banner-01001"); this.add(".c_portalResEbizads_banner-01001 .bannerTitle"); this.add(".c_portalResEbizads_banner-01001 .summry"); this.add(".c_portalResProduct_list-01001001 .PhotoList_k1 li"); this.add(".c_portalResnav_main-01001 .top-nav"); this.add(".c_portalResIntro_detail-01001"); this.add(".w_fimgbox-001"); this.add(".c_portalResNews_list-01001 .newList"); this.add(".c_portalResNews_detail-01001 .p_header"); this.add(".c_portalResNews_detail-01001 .p_dataSource"); this.add(".c_portalResNews_detail-01001 .p_summary"); this.add(".c_portalResNews_detail-01001 .p_articles"); this.add(".c_portalResNews_detail-01001 .p_PrevAndNext"); this.add(".c_portalResProduct_list-01001"); this.add(".c_portalResNews_list-01001 .p_articles"); this.add(".c_portalResEmploy_list-01001 .jobList"); this.add(".c_portalResProduct_list-01001 .p_Product"); this.add(".c_portalResSearch_total-01001"); this.add(".c_portalResPublic_websiteShare-01001 .iShare a"); this.add(".c_portalResPublic_codeContainer-01001"); this.add(".wd-20201127092601 li"); this.add(".c_portalResPublic_codeContainer-01001003"); this.add(".c_portalResPublic_websiteShare-01001"); this.add(".c_portalResNews_list-01001021 .p_news li"); $(window).scroll(function() { handle(); }); handle(); } }; } wd.nav = function() { var a = $("#c_portalResnav_main-15943489353352221 .navLi") var index = 0; var b = []; b.push($("#c_portalResEbizads_banner-15940286777598127")); b.push($("#c_portalResEbizads_banner-1579141482402,#c_portalResEbizads_banner-1579151936169")); b.push($("#c_portalResEbizads_banner-1607569200918,#c_portalResEbizads_banner-1611794787405")); b.push($("#c_portalResEbizads_banner-1611794744786,#c_portalResProduct_detail-16117948222194858")); b.push($("#c_portalResNews_list-15791604817721026,#c_portalResNews_detail-15933996426837668")); b.push($("#c_portalResIntro_detail-15933910580306079 .p_header:contains('缁翠慨鏈嶅姟')")); b.push($("#c_portalResEbizads_banner-1594604612242")); b.push($("#c_portalResIntro_detail-15933910580306079 .p_header:contains('鍚堢害淇濆吇')")); b.push($("#c_portalResEbizads_banner-1579164043174")); for (var i = 0; i < b.length; i++) { if (b[i].length) { index = i; break; } } a.eq(index).addClass("wd-current"); } wd.common = function() { wd.nav(); $(".w_grid-000, .w_grid-001,.w_grid-003").find("> div > .p_gridbox").each(function() { $(this).attr("id", $(this).parent().parent().attr("id") + "-1"); }); } wd.index = function() { if (location.href.indexOf("home.html") != -1 || location.pathname == "/") { var _sa = wd.scroll_ani(); _sa.init(); } else { this.sub(); } } wd.sub = function() { this.body.addClass("wd-sub"); $("div[class*='_category-']").each(function() { $(this).addClass("wd-sub-category"); var container = $("