var wd = {}; wd.index = function() { $(".lan_tel a").prepend(''); if (wd.is_home()) { wd.block_phone.sign && wd.block_phone.block(); wd.block_links.sign && wd.block_links.block(); wd.body.addClass("wd-index"); $("#w_fbtn-1631062873947").addClass("wd-white"); $("#w_common_text-1630336009951,#w_common_text-1630339222494,#w_common_text-1630339395088,#w_common_text-1631061699258").addClass("wd-title-animation").each(function() { $(this).find("span").last().addClass("wd-wrapper").each(function() { let text = $(this).text(); $(this).html("" + text.split("").join("") + ""); }); }); if (wd.is_scroll_ani) { var _sa = wd.scroll_animation(); _sa.add("#c_portalResNews_category-16310617780353226 a"); _sa.add("#c_portalResNews_list-16310618203137256 .wd-item"); _sa.add("#content_box-1598083861428-3 > div"); _sa.init(); } $("#c_portalResEbizads_banner-16303358479688644").each(function() { var items = $(this).find(".wd-item"); items.first().addClass(wd.wc); var words = $("
").addClass("wd-20210831084202"); words.append("

涓撴敞宸ョ▼寤鸿

").append("

Focus on engineering construction

").append("鎿呴暱寤鸿鍙樼數绔欍€佽緭鐢电嚎璺€佸煄涔¢厤鐢电綉銆佺敤鎴烽厤鐢电綉銆佷腑灏忓瀷姘寸數绔欍€佸厜浼忕數绔欍€侀鑳界數绔欍€侟/span>"); let words2 = $("
").addClass('wd-20210908004139'); words2.append("

姹夊攼寤鸿鑷?013骞存垚绔嬭嚦浠婏紝濮嬬粓绉夋寔\"浠ュ搧璐ㄦ眰鐢熷瓨锛屼互璇氫俊姹傚彂灞曪紝浠ュ競鍦轰负瀵煎悜锛屼互瀹㈡埛涓轰腑蹇僜"鐨勫熀鏈悊蹇碉紝鍔姏鎵撻€犱竴涓泦鍒涙柊绮剧銆佸伐鍖犵簿绁炰负涓€浣撶殑涓浗鐭ュ悕浼佷笟銆侟/p>"); $(this).append(words).append(words2); }); $("#c_portalResProduct_list-16310615574759353 .wd-20210908095542").each(function() { let a = $(this); a.find(".wd-item").addClass("swiper-slide").wrapAll("

"); a.find(".wd-prev,.wd-next").append(''); let swiper = new Swiper("#c_portalResProduct_list-16310615574759353 .swiper-container",{ slidesPerView: 'auto', loop: true }); var auto = { timer: null, duration: 4000, start: function() { this.timer = setInterval(function() { swiper.slideNext(1000); }, this.duration); }, stop: function() { clearInterval(this.timer); } } auto.start(); a.hover(function() { auto.stop(); }, function() { auto.start(); }); a.find(".wd-prev").click(function() { swiper.slidePrev(); }); a.find(".wd-next").click(function() { swiper.slideNext(); }); }); $("#c_portalResProduct_list-16310613804048579 .wd-20210908091554").each(function() { var content = $(this); content.addClass("wd-overflow-hidden"); content.find(".wd-item").wrapAll("
"); var ul = content.find(".wd-scroll-container"); var wrapper = content.find(".wd-scroll-wrapper"); var li = ul.children().children(); var speed = 1; var left = 0; ul.children().append(li.clone()); ul.children().append(li.clone()); var width = $(window).width(); ul = ul.get(0); var timer; function run() { width = wrapper.width() / 3; if (left > width) { left = 0 } left += speed; ul.style.left = -left + "px"; timer = requestAnimationFrame(run); } timer = requestAnimationFrame(run); content.hover(function() { cancelAnimationFrame(timer); }, function() { timer = requestAnimationFrame(run); }); }); setTimeout(function() { wd.body.addClass("wd-show"); }, 300); } else { if (!wd.block_links.sign) { wd.block_phone.sign && wd.block_phone.block(); wd.block_links.sign && wd.block_links.block(); wd.body.addClass("wd-sub"); wd.nav(); if (wd.is_scroll_ani) { var _sbsa = wd.scroll_animation(); _sbsa.add(".subpage_ad .ad-tit, .subpage_ad .ad-line, .subpage_ad .ad-sum"); _sbsa.add(".wd-20210803180644"); _sbsa.add("div[id*='_category-']"); _sbsa.add("#c_portalResProduct_list-15586522526565849 .pro ul li"); _sbsa.add("#c_portalResProduct_list-15992013195484847 .PhotoList_k1 li"); _sbsa.add("#w_grid-1630545134456"); _sbsa.add("#w_grid-1630572989485"); _sbsa.add("#c_portalResProduct_list-15687684271323675 .proLi"); _sbsa.add("#c_portalResNews_list-16306005336765937 .list"); _sbsa.add("#c_portalResNews_list-16287497608888469"); _sbsa.add("#c_portalResNews_list-16287497608888469 .new-list"); _sbsa.add($("#c_portalResEmploy_detail-16306024599804362 .contentTop").children()); _sbsa.add("#c_portalResEmploy_detail-16306024599804362 .contentMidle"); _sbsa.add("#content_box-1558600138268-0"); _sbsa.add("#w_grid-1589350507167"); _sbsa.add("#w_grid-1630485395054 > div > .p_gridbox"); _sbsa.add("#w_grid-1630485395062 > div > .p_gridbox"); _sbsa.add("#w_grid-1630485395072 > div > .p_gridbox"); _sbsa.add("#content_box-1598083861428-0"); _sbsa.add("#content_box-1598083861428-1"); _sbsa.add("#w_grid-1630479629234"); _sbsa.add("#w_grid-1630479512678"); _sbsa.add("#content_box-1631677114153-1 > div"); _sbsa.add(".c_portalResProduct_list-01001002 .PhotoList_k1 li"); _sbsa.add(".wd-sub-cate a"); _sbsa.add("#w_grid-1631677114148"); _sbsa.add($("#w_grid-1631673872747 svg").parent()); _sbsa.add("#w_grid-1631674911638"); _sbsa.add("#w_grid-1631673872747"); _sbsa.add(".p_OccupyBox"); _sbsa.add("#c_portalResProduct_list-15737116786868602 .proLi"); _sbsa.init(); } wd.sub(wd.body); } } } wd.sub = function() { $(".wd-20220802155237-2").each(function() { if($(window).width() < 768) { return; } $(this).html("" + $(this).text().split("").join("") + ""); $(this).children().wrap("
").each(function() { $(this).clone().insertAfter(this); }).parent().parent().parent().hover(function() { $(this).find(".wd-oh").each(function(i) { let a = $(this).find("span"); gsap.to(a.eq(0), {top:"-100%",opacity:0,delay:0.01*i}); gsap.to(a.eq(1), {top:"0%",opacity:1,delay:0.01*i+0.01}); }); }, function() { $(this).find(".wd-oh").each(function(i) { let a = $(this).find("span"); gsap.killTweensOf(a.eq(0)).to(a.eq(0), {top:0,opacity:1}); gsap.killTweensOf(a.eq(1)).to(a.eq(1), {top:"100%", opacity:0}); }); }); }); $("#w_common_text-1631667115459 > div").each(function() { wd.scroll_percent_animation.call($(this).get(0), function(a, b) { $(a).css("transform", "translateX("+-(1-b)*wd.wh()*0.3+"px)"); }); }); $(".wd-sub-cate").each(function() { $(".wd-sub-cate a[href='"+location.pathname+"']").addClass('wd-current'); }); $("#c_portalResProduct_list-15737116786868602 .proLi").click(function() { location.href = $(this).find("a").attr("href"); }); $("#c_portalResProduct_detail-15895233739681064").each(function() { let index = 0; let timer = setInterval(()=> { $(this).find("img[lazy-src]").each(function() { $(this).attr("src", $(this).attr("lazy-src")).removeAttr("lazy-src"); }); index++; if(index > 1000) { clearInterval(timer); } }, 10); }); $(".c_portalResBreadcrumb_nav-01001 .p_breadcrumbList").prepend(''); $("#w_common_text-1630479748826,#w_common_text-1631087497500,#w_common_text-1630485309489,#w_common_text-1630486444110,#w_common_text-1631091606317,#w_common_text-1630544205898,#w_common_text-1630601544374,#w_common_text-1630601544374,#w_common_text-1630601926220,#w_common_text-1630544357084").addClass("wd-title-animation").each(function() { $(this).find("span").last().addClass("wd-wrapper").each(function() { let text = $(this).text(); $(this).html("" + text.split("").join("") + ""); }); }); $("#w_common_text-1587700749293").addClass("wd-sub-title-ch"); $("#w_common_text-1630544357084").addClass("wd-sub-title-en"); $("#w_common_text-1630572561322 p").prepend(''); $("#w_grid-1630563566456 > .w_grid > .p_gridbox:nth-child(1)").each(function() { $(this).children().append(''); }); $("#w_common_text-1630545098715").find("p").prepend(''); $("#content_box-1627001705654-1").children().eq(1).addClass("wd-dn"); $("#content_box-1627001705654-0").children().first().addClass("wd-20210723091634").end().hover(function() { $(this).siblings().removeClass("wd-20210723091634"); $(this).addClass("wd-20210723091634"); $("#content_box-1627001705654-1").children().addClass("wd-dn").eq($(this).index()).removeClass("wd-dn"); }); $("#w_grid-1575256404955 > div > .p_gridbox").each(function() { var t = $(this); $(window).scroll(function() { if ($(window).scrollTop() > 50) { t.addClass("wd-dark"); } else { t.removeClass("wd-dark"); } }); }); $("#w_fimg-1575256423976").find("img").each(function() { $("").attr("src", "/img/wd_logo_1.png").attr("alt", "logo").insertAfter($(this)); }); wd.mo(()=>{ $(".iphone-fix > button").first().click(()=>{ $(".iphone-position").addClass("iphone-left"); } ); $(".iphone-icon").click(()=>{ $(".iphone-position").removeClass("iphone-left"); } ); } ); setTimeout(function() { wd.body.addClass("wd-show"); }, 300); } wd.mo = function(callback) { if ($(window).width() <= 768) { callback(); } } wd.ls = (function() { return { set: function(a, b) { localStorage.setItem(a, b); }, remove: function(a) { localStorage.removeItem(a); }, get: function(a) { return localStorage.getItem(a); }, is: function(callback) { if (this.get("wd")) { callback(); } }, auto: function() { this.set("wd", 1); } }; })(); wd.wh = function() { return $(window).height(); } wd.$ = function() { return document.querySelector(arguments[0]); } wd.$$ = function() { return document.querySelectorAll(arguments[0]); } wd.scroll_percent_animation = function(callback) { let a = this, b, c; if(!a && !a.length) { return; } function handle() { b = a.getBoundingClientRect(); if(!b) { return; } c = { top:b.top, bottom:b.bottom }; if(c.top < wd.wh() && (c.bottom > 0 && c.bottom < wd.wh())) { callback(a, c.top / wd.wh()); } } $(window).scroll(function() { handle(); }); } wd.cursor = function() { if ($(window).width() < 768) { return; } var cursor = $("
").addClass("wd-cursor").append("
鏌ョ湅璇︽儏
").append("
"); wd.body.append(cursor); var _cursor = cursor.get(0); wd.body.get(0).addEventListener("mousemove", function(e) { _cursor.style.transform = "translate(" + e.clientX + "px, " + e.clientY + "px)"; }); $("#c_portalResProduct_list-16310615574759353").addClass("wd-cursor-w").attr("wd-cursor-type", "wd-show-detail"); $("#c_portalResPublic_codeContainer-16310641420065873").addClass("wd-cursor-w").attr("wd-cursor-type", "wd-show-detail"); $("#c_portalResNews_list-16310618203137256").addClass("wd-cursor-w").attr("wd-cursor-type", "wd-show-img"); let type; $(".wd-cursor-w").hover(function(e) { cursor.addClass("wd-show"); type = $(this).attr("wd-cursor-type"); cursor.addClass(type); }, function() { cursor.removeClass("wd-show"); let type = $(this).attr("wd-cursor-type"); if (type) { cursor.removeClass(type); } }); let img; $(".wd-cursor-w").mousemove(function(e) { if (type) { if (type == "wd-show-img") { let src = $(e.target).attr("data-img-src"); if (!src) { src = $(e.target).closest("[data-img-src]").attr("data-img-src"); } if (src) { img = cursor.find(".wd-img").find("img"); if (!img.length) { img = $("").appendTo(cursor.find(".wd-img")); } img.attr("src", src); } } } }); } ; wd.common = function() { $("a, img").attr("draggable", false); $(".nav-sub").parent().hover(function() { $(this).find(".nav-sub").stop(true,false).slideDown(); }, function() { $(this).find(".nav-sub").stop(true,false).slideUp(); }); $("nav .f-cb, .header2 .sub-menu > ul").each(function() { $(this).children().last().each(function() { let a = $(this).clone(); a.clone().insertAfter(this).find("a").each(function() { $(this).text("杩愯緭浼佷笟娉ㄥ唽").attr("href", "http://wuliu.scdandan.com/game/mission/handlet"); }).end().each(function() { $(this).html($(this).find("a").get(0).outerHTML); }); a.clone().insertAfter(this).find("a").each(function() { $(this).text("閲囪喘浼佷笟娉ㄥ唽").attr("href", "http://wuliu.scdandan.com/game/mission/handle"); }).end().each(function() { $(this).html($(this).find("a").get(0).outerHTML); }); }); }); wd.cursor(); wd.mo(()=>{ $(".wd-nav").each(function() { $(this).append('
'); wd.delay(500, ()=>{ $(this).find(".wd-20210903170918").addClass("wd-scrolled").click(function() { $(".wd-nav nav").each(function() { $(this).append('
'); }).addClass("wd-show").find(".wd-close").click(function() { $(this).parent().removeClass("wd-show"); }); }); } ); }); } ); wd.ls.is(function() { $(".w_grid-000, .w_grid-001, .w_grid-002, .w_grid-003").find(" > div").each(function() { $(this).attr("data-wd-selector", "#" + $(this).parent().attr("id") + " > .w_grid"); $(this).find(" > .p_gridbox").each(function(i) { $(this).attr("data-wd-selector", "#" + $(this).parent().parent().attr("id") + " > .w_grid > " + ".p_gridbox:nth-child(" + (i + 1) + ")"); $(this).find("> .p_gridCell").each(function(j) { $(this).attr("data-wd-selector", "#" + $(this).parent().parent().parent().attr("id") + " > .w_grid > " + ".p_gridbox:nth-child(" + (i + 1) + ") > .p_gridCell:nth-child(" + (j + 1) + ")"); }); }); }); }); wd.index(); wd.right_float(); if (wd.is_title_ani) { $("#w_common_text-1616486684666").addClass("wd-title-ani"); $("#w_common_text-1616549940043").addClass("wd-title-ani"); wd.title_ani(); } if (wd.is_history_scroll_restoration) { history.scrollRestoration = 'auto'; } wd.ls.is(function() { $("img").each(function() { console.log($(this).attr("alt") || ""); console.log($(this).get(0)); console.log(""); }); }); $("a,img").removeAttr("title"); $("#c_portalResnav_main-16039823873222163 .header .navbar_nav li a").removeAttr("target"); $("#c_portalResnav_main-16039823873222163 .m_nav .ul li a").removeAttr("target"); $("#c_portalResnav_main-15876886109640259").wrap("