history.scrollRestoration = 'manual'; $(function() { wd.body = $("body"); if (isFrontEnv()) { $("img,a").removeAttr("title"); wd.body.addClass("wd"); wd.common(); //wd.rightFloat(); wd.index(); wd.nav(); setTimeout(function() { wd.body.addClass("wd-show"); }, 500); } else { wd.body.addClass("make"); } }); wd.scroll_content = function() { if($(window).width() < 768) { return; } var auto_scroll = localStorage.getItem("auto-scroll"); if(auto_scroll == null) { auto_scroll = 0; } if(auto_scroll == 0) { localStorage.setItem("auto-scroll", 1); } else { var loaded = false; function loop() { if(!loaded) { $("html,body").stop(false, true).animate({ "scrollTop":90 + $(window).width()*0.24 - 70 }, 100); } requestAnimationFrame(loop); } requestAnimationFrame(loop); var banner_img = new Image(); banner_img.onload = function() { loaded = true; }; banner_img.src = $(".c_portalResEbizads_banner-01001 .bgimg").first().css("background-image").split("\"")[1]; } $("#c_portalResnav_main-15966817969545034 .tNav .navName").click(function() { localStorage.setItem("auto-scroll", 0); }); }; wd.nav = function() { var a = $("#c_portalResnav_main-15966817969545034 .navLi"); var index = 0; var b = []; b.push($("#c_portalResEbizads_banner-16070567160096073")); b.push($(".c_portalResIntro_category-01001")); b.push($(".c_portalResNews_category-01001")); b.push($(".c_portalResProduct_category-01001")); b.push($("#w_fimg-1608436511215")); b.push($("#w_fimg-1609146974570")); for(var i=0;i").find(".wd-more").click(function() { var sub = $(this).parent().children().filter(".wd-sub"); if(sub.is(":visible")) { sub.next().removeClass("wd-show"); sub.slideUp(); } else { sub.next().addClass("wd-show"); sub.slideDown(); } }); $("#c_portalResnav_main-15966817969545034 .navLi").last().each(function() { $("
  • 浼佷笟閭
  • 鍔炲叕鍗忓悓
  • ").insertAfter($(this)); $(".wd-20210207101916").each(function(i) { $(this).prepend(['', ''][i]); }).hover(function() { var t = this; anime({ targets: t.querySelectorAll("path"), strokeDashoffset: [anime.setDashoffset, 0], easing: 'easeInOutSine', duration: 1500, delay: function(el, i) { return i * 250 }, direction: 'alternate', loop: true }); }); }); }; wd.index = function() { if(!$("#c_portalResEbizads_banner-16070567160096073").length) { this.sub(); return; } $("#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-15966817969545034 .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.add("#c_portalResFriendlink_list-16081150047127266 .wd-item"); _sa.init(); }; wd.sub = function() { wd.body.addClass("sub"); wd.scroll_content(); $("#c_portalResnav_main-15966817969545034 .navLi").addClass("wd--nav"); $("#c_portalResPublic_codeContainer-15966817969431981 .lv_toptel").addClass("wd--nav"); $("#c_portalResProduct_detail-15791661402201381 .d_summary").each(function() { $(this).html("

    " + $(this).html().replace(/\n/g, "

    ") + "

    "); $(this).find("p").each(function() { $(this).html($.trim($(this).text())); }); }); setInterval(function() { $("#c_portalResNews_list-16081942957458125 .picBox a img[src*='no-img'], #c_portalResNews_list-16081942957458125 .picBox a img[src='']").each(function() { $(this).attr("src", "/img/20201231120147.png").addClass("wd-no-img"); }); }, 500); $("[class*='_category-']").each(function() { $(this).find("a").each(function() { if(location.href.indexOf($(this).attr("href")) != -1 || $(".c_portalResNews_detail-01001 .p_dataSource > li a[href='"+$(this).attr("href")+"']").length || $(".c_portalResBreadcrumb_nav-01001 .p_breadcrumb > a[href='"+$(this).attr("href")+"']").length) { $(this).parent().addClass("wd-current"); if($(window).width() > 769) { $(this).closest(".p_gridCell").css({ position:"sticky", top:"120px" }).parent().css("align-items", "flex-start"); } } }); }); $(".wd-sub-cate").each(function() { $(this).prepend("
    鏌ョ湅鏇村
    "); var animating = false; $(this).find(".wd-trigger").append('').click(function() { if(animating) { return; } animating = true; if($(this).hasClass("wd-show")) { $(this).removeClass("wd-show"); var items = $(this).nextAll().each(function() { 聽$(this).delay($(this).index()*0.1).slideUp(); }); setTimeout(function() { animating = false; }, items.length * 100 + 100); } else { $(this).addClass("wd-show"); var items = $(this).nextAll().each(function() { 聽$(this).delay($(this).index()*0.1).slideDown(); }); setTimeout(function() { animating = false; }, items.length * 100 + 100); } }); }); $(".c_portalResCompanyFile_list-03001 .p_fileDetails a, .c_portalResCompanyFile_list-03001 .p_fileBox a").attr("href", "javascript:;"); $(".c_portalResProduct_detail-01001 .d_description").each(function() { $(this).find("table").each(function() { $(this).wrap("
    "); }); }); $(".subpage_ad .bgimg").each(function() { if(!$(this).is(":visible")) { return; } var position = 50; $(window).scroll(function() { var top = 50 + $(window).scrollTop() / $(window).width() * $(window).height() * 0.3; if(top > 60) { top = 60; } TweenMax.to(this, 1, {css:{"background-position":"50% " + (top + "%")}}); }.bind(this)); }); $(".subpage_ad").each(function() { $(this).find(".ad-tit").each(function() { $(this).html("" + $(this).text().split("").join("") + ""); }); $(this).find(".ad-tit span").each(function(i) { wd.animate.set(this, {y:100}); }); setTimeout(function() { $(this).addClass("wd-show-title"); $(this).find(".ad-tit span").each(function(i) { wd.animate.to(this, 1, {y:0}).delay(1+0.1*i); }); }.bind(this), 1000); }); 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"); _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.add(".e_FlowCommonStyleBox-001"); _sa.add(".c_portalResNews_detail-01001"); // _sa.add("#w_grid-1596681793680"); _sa.add(".wd-item"); _sa.add(".e_SideMajorStyleBox-001"); _sa.init(); };