// history.scrollRestoration = 'manual'; var wd = {}; $(function() { wd.body = $("body"); if (isFrontEnv()) { wd.body.addClass("wd"); wd.common(); wd.rightFloat(); wd.index(); setTimeout(function() { wd.body.addClass("wd-show"); }, 500); } else { wd.body.addClass("make"); } }); wd.common = function() { $("#c_portalResPublic_codeContainer-16070566318610199 .wd-item").hover(function() { $(this).find(".wd-sub").stop(true, false).slideDown(); }, function() { $(this).find(".wd-sub").stop(true, false).slideUp(); }); }; wd.index = function() { if(!$("#c_portalResEbizads_banner-15889873499571493").length) { this.sub(); } $("#c_portalResEbizads_banner-16070567160096073 .lv-slider .slide-inner").each(function() { if($(this).attr("data-href")) { $(this).click(function() { location.href = $(this).attr("data-href"); }); } }); // header $("#c_portalResnav_main-15732848872754102 .navLi").addClass("wd--nav"); $("#c_portalResPublic_codeContainer-15732848869219091 .lv_toptel").addClass("wd--header-tel"); var _sa = wd.scroll_ani(); _sa.add(".c_portalResProduct_category-01001 .swiper-slide"); _sa.add("#w_grid-1588924454533"); _sa.add("#c_portalResPublic_codeContainer-15947155556412602 .about-num li"); _sa.add("#w_grid-1588928899806"); _sa.add("#c_portalResPublic_codeContainer-15889333947206863"); _sa.add("#c_portalResNews_list-16070567669426361 .wd-20201204115448 .wd-item"); _sa.init(); }; wd.sub = function() { $("#c_portalResnav_main-15966817969545034 .navLi").addClass("wd--nav"); $("#c_portalResPublic_codeContainer-15966817969431981 .lv_toptel").addClass("wd--nav"); $("#c_portalResProduct_detail-15791661402201381 .d_description").each(function() { $(this).find("p").each(function() { if($(this).children().length == 0 && $(this).get(0).childNodes[0].nodeType == 3 && $.trim($(this).text()) == "") { $(this).remove(); } }); }); $(".c_portalResProduct_detail-01001 .d_DescriptionBigbox table").each(function() { $(this).wrap("
"); }); $(".c_portalResCompanyFile_list-03001 .p_fileDetails a, .c_portalResCompanyFile_list-03001 .p_fileBox a").attr("href", "javascript:;"); var _sa = wd.scroll_ani(); _sa.add(".c_portalResIntro_category-01001 .NavList_a1 li"); _sa.add(".c_portalResBreadcrumb_nav-01001 .p_breadcrumbList span, .c_portalResBreadcrumb_nav-01001 .p_breadcrumbList a, .c_portalResBreadcrumb_nav-01001 .p_breadcrumbList a .p_end"); _sa.add(".c_portalResBreadcrumb_nav-01001002 .p_breadcrumbList span, .c_portalResBreadcrumb_nav-01001002 .p_breadcrumbList a, .c_portalResBreadcrumb_nav-01001002 .p_breadcrumbList a .p_end"); _sa.add(".c_portalResIntro_detail-01001 .p_content .reset_style > div, .c_portalResIntro_detail-01001 .p_content .reset_style > p"); _sa.add("#c_portalResProduct_category-16038162791322823 .contentBox li"); _sa.add(".e_SideMajorStyleBox-001 .stylebox_top"); _sa.add("#c_portalResProduct_category-16038162791322823"); _sa.add("#w_grid-1605169934342"); _sa.add("#c_portalResProduct_list-15791660244892910 .proLi"); _sa.add("#c_portalResNews_category-15791603702205425 .NavList_a1 li"); _sa.add("#c_portalResNews_list-16038133617196536 .newList1"); _sa.add("#c_portalResNews_category-15966930109369290 .NavList_a1 li"); _sa.add("#c_portalResNews_list-15966935825156571 .new-list"); _sa.add("#w_grid-1596693579178 > div > .p_gridbox"); _sa.add(".c_portalResNews_detail-01001 .p_articles > p, .c_portalResNews_detail-01001 .p_articles > div"); _sa.add("#w_grid-1603815471568"); _sa.add("#w_grid-1603815471561"); _sa.add("#w_grid-1605153569707"); _sa.add("#c_portalResPublic_codeContainer-16051535698257976"); _sa.add("#w_grid-1579164493701"); _sa.add(".c_portalResProduct_list-01001008 .PhotoList_k1 li"); _sa.init(); }; 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_portalResEbizads_banner-01001 .ad-tit"); this.add(".c_portalResEbizads_banner-01001 .ad-line"); this.add(".c_portalResEbizads_banner-01001 .ad-sum"); this.add(".c_portalResPublic_codeContainer-01001"); this.add(".wd-20201127092601 li"); this.add(".c_portalResnav_main-01001002"); this.add(".c_portalResFriendlink_list-01001"); this.add(".c_portalResProduct_list-01001017"); $(window).scroll(function() { handle(); }); handle(); } }; }; wd.rightFloat = function() { var config = { email: "279312695@qq.com", tel: "18312069136", message: "/Contact.html" }; var right = $("
").addClass("wd-right-float"); var email = $("
").addClass("wd-item email").append('').append("
" + config.email + "
"); var phone = $("
").addClass("wd-item phone").append('').append("
" + config.tel + "
"); ;var message = $("
").addClass("wd-item message").append('').append("
鐐瑰嚮鐣欒█
"); var top = $("
").addClass("wd-item top").append(''); right.append(email).append(phone).append(message).append(top); $("body").append(right); right.find(".wd-item").last().click(function() { $("html,body").animate({ scrollTop: 0 }, 1000); }); $(window).scroll(function() { if($(window).height() + $(window).scrollTop() + $(window).height() / 2 >= wd.body.height()) { right.addClass("wd-hide"); } else { right.removeClass("wd-hide"); } }); setTimeout(function() { right.addClass("wd-show"); }, 500); };