$(window).resize(function () { getbaph(); videohide(); }); getbaph(); videohide(); function videohide() { if ($(window).width() < 1000) { $(".hh5banervideo,.bnaneevideo").remove(); $(".indexoneaswiperm").attr("data-swiper-autoplay", "3500"); } } function getbaph() { if ($(window).width() < 1000 && $(".isbaner").length > 0) { // var mehe = $(window).width() * (350 / 750); $(".isbaner").each(function () { var pbg = $(this).attr("_src"); $(this).attr("style", pbg); }); } } $(".wenxindj").click(function () { $(".wapwxtc,.wapwxtcbox").fadeIn(300); }); $(".wapwxtc").click(function () { $(".wapwxtc,.wapwxtcbox").fadeOut(300); }); $(".serve_case").hover(function () { $(this).addClass("on").siblings().removeClass("on"); }); // $('.xxhead').hover(function(){ // $(this).addClass('tab'); // },function(){ // $(this).removeClass('tab'); // }) if ($(".parallax").length > 0) { /* $('.parallax').scrolly({bgParallax: true});*/ } if ($(".swiper-case").length > 0) { if ($(window).width() > 1000) { Hgroups2(); } else { Hgroups1(); } } function Hgroups1() { var swipercase = new Swiper(".swiper-case", { slidesPerView: 1, spaceBetween: 0, loop: true, loopedSlides: 1, autoplay: true, pagination: { el: ".absrpage", //clickable :true, }, }); } function Hgroups2() { var swipercase = new Swiper(".swiper-case", { slidesPerView: 3, centeredSlides: true, loop: true, autoplay: true, navigation: { nextEl: ".casebtnext", prevEl: ".casebtprev", }, }); } // $('.xxsearch').click(function(){ // $(this).fadeOut(300); // $('.guanbia').fadeIn(); // $('.xxhead').addClass('isgb'); // $('.h_search').addClass('h_searchon'); // $('.hsbg').addClass('hsbgon'); // }) $(".guanbia").click(function () { $(".navsearch").fadeIn(300); $(this).fadeOut(300); $(".guanbia").fadeOut(); $(".xxhead").removeClass("isgb"); $(".h_search").removeClass("h_searchon"); $(".hsbg").removeClass("hsbgon"); }); $(".gotops").click(function () { $("body,html").animate({ scrollTop: 0 }, 300); }); $(".h_backtop").click(function () { $("body,html").animate({ scrollTop: 0 }, 300); $(".mpromeau,.mpromeaubg").fadeOut(300); }); $(".fotclick").click(function () { $(".mpromeau,.mpromeaubg").fadeOut(300); }); $(".showmpromeau").click(function () { $(".mpromeau,.mpromeaubg").fadeIn(300); }); $(".mpromeaubg").click(function () { $(".mpromeau,.mpromeaubg").fadeOut(300); }); function addEvent(obj, type, fn) { if (obj.attachEvent) { obj.attachEvent("on" + type, function () { fn.call(obj); }); } else { obj.addEventListener(type, fn, false); } } $(".js_ttx").click(function () { $(this).addClass("cur"); // $(this).parents('.inprocma').siblings('.inprocma').find('.inprocmam').removeClass('cur') }); if ($(".wapnewindexslider").length > 0) { var wapnewindexslider = new Swiper(".wapnewindexslider", { effect: "fade", loop: true, autoplay: { delay: 4000, stopOnLastSlide: false, disableOnInteraction: false, }, pagination: { el: ".wapnewindexpage", clickable: true, }, }); } if ($(".incareercslider").length > 0) { var incareercslider = new Swiper(".incareercslider", { speed: 2500, observer: true, observeParents: true, loop: true, autoplay: true, centeredSlides: true, scrollbar: { el: ".incareerc-scrollbar", }, pagination: { el: ".incareerc-pagination", clickable: true, }, breakpoints: { 320: { //褰撳睆骞曞搴﹀ぇ浜庣瓑浜?20 slidesPerView: 1.2, spaceBetween: 10, }, 768: { //褰撳睆骞曞搴﹀ぇ浜庣瓑浜?68 slidesPerView: 1.2, spaceBetween: 15, }, 1080: { //褰撳睆骞曞搴﹀ぇ浜庣瓑浜?280 slidesPerView: 3, spaceBetween: 25, }, }, }); } /* if($('.zaixx26bslider').length>0) { var zaixx26bslider = new Swiper('.zaixx26bslider', { autoplay: { delay: 30000, disableOnInteraction: false }, speed: 1200, navigation: { nextEl: '.aniur', prevEl: '.aniul', }, scrollbar: { el: ".zaixx26bsliderbar", hide: false, dragSize: 35, }, centeredSlides: true, loop: false, breakpoints: { 320: { //褰撳睆骞曞搴﹀ぇ浜庣瓑浜?20 slidesPerView: 1.5, spaceBetween: 15 }, 768: { //褰撳睆骞曞搴﹀ぇ浜庣瓑浜?68 slidesPerView: 1.5, spaceBetween: 15 }, 1080: { //褰撳睆骞曞搴﹀ぇ浜庣瓑浜?280 slidesPerView: 3, spaceBetween: 30 } } }); zaixx26bslider.slideTo(1, 1000, false);//鍒囨崲鍒扮涓€涓猻lide锛岄€熷害涓?绉 } */ var $nav = $("#main-nav"); var $toggle = $(".mmeau"); var bottm = ""; var defaultData = { maxWidth: false, customToggle: $toggle, navTitle: '', bottomTitle: bottm, levelTitles: true, }; // we'll store our temp stuff here var $clone = null; var data = {}; // calling like this only for demo purposes const initNav = function (conf) { if ($clone) { // clear previous instance $clone.remove(); } // remove old toggle click event $toggle.off("click"); // make new copy $clone = $nav.clone(); // remember data $.extend(data, conf); // call the plugin $clone.hcMobileNav($.extend({}, defaultData, data)); }; // run first demo initNav({}); if ($(".respcslider").length > 0) { var respcslider = new Swiper(".respcslider", { autoplay: { delay: 3000, disableOnInteraction: false, }, slidesPerView: "auto", spaceBetween: 15, speed: 1200, observer: true, observeParents: true, navigation: { nextEl: ".respcsliderbtnr", prevEl: ".respcsliderbtnl", }, centeredSlides: false, loop: true, breakpoints: { 320: { //褰撳睆骞曞搴﹀ぇ浜庣瓑浜?20 slidesPerView: 2, spaceBetween: 15, }, 768: { //褰撳睆骞曞搴﹀ぇ浜庣瓑浜?68 }, 1280: { //褰撳睆骞曞搴﹀ぇ浜庣瓑浜?280 }, }, }); } if ($(".aboutcslider").length > 0) { var aboutcslider = new Swiper(".aboutcslider", { autoplay: { delay: 3000, disableOnInteraction: false, }, speed: 1200, observer: true, observeParents: true, navigation: { nextEl: ".aniur", prevEl: ".aniul", }, centeredSlides: true, loop: true, breakpoints: { 320: { //褰撳睆骞曞搴﹀ぇ浜庣瓑浜?20 slidesPerView: 1.5, spaceBetween: 15, }, 768: { //褰撳睆骞曞搴﹀ぇ浜庣瓑浜?68 slidesPerView: 1.5, spaceBetween: 15, }, 1280: { //褰撳睆骞曞搴﹀ぇ浜庣瓑浜?280 slidesPerView: 3, spaceBetween: 55, }, }, }); } if ($(".ptysslide01").length > 0 && $(window).width() < 768) { var ptysslide01 = new Swiper(".ptysslide01", { loop: true, observer: true, observeParents: true, autoplay: { delay: 3500, stopOnLastSlide: false, disableOnInteraction: false, }, autoHeight: true, navigation: { nextEl: ".ptysslide01btn2", prevEl: ".ptysslide01btn1", }, pagination: { el: ".ptysslide01page", clickable: true, }, effect: "fade", }); } if ($(".ptysslide02").length > 0 && $(window).width() < 768) { var ptysslide02 = new Swiper(".ptysslide02", { loop: true, observer: true, observeParents: true, autoHeight: true, autoplay: { delay: 3500, stopOnLastSlide: false, disableOnInteraction: false, }, navigation: { nextEl: ".ptysslide02btn2", prevEl: ".ptysslide02btn1", }, pagination: { el: ".ptysslide02page", clickable: true, }, effect: "fade", }); } // if($('.ptysslide04').length>0 && $(window).width()<768) // { // var ptysslide04 = new Swiper('.ptysslide04',{ // loop : true, // observer: true, // observeParents: true, // autoHeight:true, // autoplay: { // delay: 3500, // stopOnLastSlide: false, // disableOnInteraction: false, // }, // navigation: { // nextEl: '.ptysslide04btn2', // prevEl: '.ptysslide04btn1', // }, // pagination: { // el: '.ptysslide04page', // clickable :true, // }, // effect : 'fade' // }) // } if ($(".ptysslide05").length > 0 && $(window).width() < 768) { var ptysslide05 = new Swiper(".ptysslide05", { loop: true, observer: true, observeParents: true, slidesPerView: 2, spaceBetween: 15, autoplay: { delay: 3500, stopOnLastSlide: false, disableOnInteraction: false, }, navigation: { nextEl: ".ptysslide05btn2", prevEl: ".ptysslide05btn1", }, pagination: { el: ".ptysslide05page", clickable: true, }, }); } if ($(".ptysslide06").length > 0 && $(window).width() < 768) { var ptysslide06 = new Swiper(".ptysslide06", { loop: true, observer: true, observeParents: true, autoplay: { delay: 3500, stopOnLastSlide: false, disableOnInteraction: false, }, navigation: { nextEl: ".ptysslide06btn2", prevEl: ".ptysslide06btn1", }, pagination: { el: ".ptysslide06page", clickable: true, }, effect: "fade", }); } if ($(".dwservdslider1").length > 0 && $(window).width() < 768) { var dwservdslider1 = new Swiper(".dwservdslider1", { loop: true, observer: true, slidesPerView: 2, spaceBetween: 0, observeParents: true, autoplay: { delay: 3500, stopOnLastSlide: false, disableOnInteraction: false, }, navigation: { nextEl: ".dwservdslider1btn2", prevEl: ".dwservdslider1btn1", }, pagination: { el: ".dwservdslider1page", clickable: true, }, // effect : 'fade' }); } if ($(".incareerbslider").length > 0 && $(window).width() < 768) { var incareerbslider = new Swiper(".incareerbslider", { loop: true, observer: true, observeParents: true, slidesPerView: 2, spaceBetween: 15, autoplay: { delay: 3500, stopOnLastSlide: false, disableOnInteraction: false, }, pagination: { el: ".incareerbpage", clickable: true, }, // effect : 'fade', loop: true, }); } if ($(".lxyfcxmaslider").length > 0) { var lxyfcxmaslider = new Swiper(".lxyfcxmaslider", { loop: false, autoplay: false, observer: true, observeParents: true, // autoplay: { // delay: 4000, // stopOnLastSlide: false, // disableOnInteraction: false, // }, navigation: { nextEl: ".lxyfcxmabtnr", prevEl: ".lxyfcxmabtnl", }, breakpoints: { 320: { //褰撳睆骞曞搴﹀ぇ浜庣瓑浜?20 slidesPerView: 1, spaceBetween: 0, }, 768: { //褰撳睆骞曞搴﹀ぇ浜庣瓑浜?68 slidesPerView: 1, spaceBetween: 0, }, 1000: { //褰撳睆骞曞搴﹀ぇ浜庣瓑浜?280 slidesPerView: 3, spaceBetween: 20, }, }, }); } if ($(".dwaboutbm").length > 0 && $(window).width() < 1000) { var dwaboutbm = new Swiper(".dwaboutbm", { loop: true, autoplay: false, centeredSlides: false, observer: true, observeParents: true, // autoplay: { // delay: 4000, // stopOnLastSlide: false, // disableOnInteraction: false, // }, pagination: { el: ".dwaboutbmpage", }, breakpoints: { 320: { //褰撳睆骞曞搴﹀ぇ浜庣瓑浜?20 slidesPerView: 1, spaceBetween: 0, }, 768: { //褰撳睆骞曞搴﹀ぇ浜庣瓑浜?68 slidesPerView: 1, spaceBetween: 0, }, }, }); } if ($(".dwcusterbslider").length > 0 && $(window).width() < 1000) { var dwcusterbslider = new Swiper(".dwcusterbslider", { loop: true, autoplay: false, observer: true, observeParents: true, // autoplay: { // delay: 4000, // stopOnLastSlide: false, // disableOnInteraction: false, // }, pagination: { el: ".dwcusterbpage", }, breakpoints: { 320: { //褰撳睆骞曞搴﹀ぇ浜庣瓑浜?20 slidesPerView: 2, spaceBetween: 0, }, 768: { //褰撳睆骞曞搴﹀ぇ浜庣瓑浜?68 slidesPerView: 2, spaceBetween: 0, }, 1280: { //褰撳睆骞曞搴﹀ぇ浜庣瓑浜?280 slidesPerView: 2, spaceBetween: 0, }, }, }); } if ($(".zaixx26cslider").length > 0) { var zaixx26cslider = new Swiper(".zaixx26cslider", { loop: true, observer: true, observeParents: true, autoplay: { delay: 4000, stopOnLastSlide: false, disableOnInteraction: false, }, navigation: { nextEl: ".culturebtnm2", prevEl: ".culturebtnm1", }, breakpoints: { 320: { //褰撳睆骞曞搴﹀ぇ浜庣瓑浜?20 slidesPerView: 1.5, spaceBetween: 15, }, 768: { //褰撳睆骞曞搴﹀ぇ浜庣瓑浜?68 slidesPerView: 2, spaceBetween: 15, }, 1280: { //褰撳睆骞曞搴﹀ぇ浜庣瓑浜?280 slidesPerView: 2, spaceBetween: 30, }, }, }); } function referurl() { window.history.go(-1); } if ($(".customizedslider").length > 0) { var customizedslider = new Swiper(".customizedslider", { effect: "fade", loop: true, autoplay: { delay: 4000, stopOnLastSlide: false, disableOnInteraction: false, }, }); } if ($(".banner").length > 0) { var banner = new Swiper(".banner", { effect: "fade", loop: false, autoplay: false, // autoplay: { // delay: 3000, // stopOnLastSlide: false, // disableOnInteraction: false, // }, navigation: { nextEl: ".bannerbtnr", prevEl: ".bannerbtnl", }, pagination: { el: ".bannerpage", clickable: true, }, on: { transitionStart: function () { $(".index_btn li").eq(this.activeIndex).addClass("hover"); $(".index_btn li").eq(this.activeIndex).siblings().removeClass("hover"); if (this.activeIndex == 1) $(".counter1").countUp(); }, }, }); } if ($(".mainservslider").length > 0 && $(window).width() < 1000) { var mainservslider = new Swiper(".mainservslider", { effect: "fade", loop: true, autoplay: { delay: 4000, stopOnLastSlide: false, disableOnInteraction: false, }, pagination: { el: ".mainservpage", }, }); } addEvent(window, "scroll", function () { /*var scrTops = $(window).scrollTop(); if (scrTops > 30) { $(".headNav").addClass("ons"); $(".mhead").addClass("mheadon"); $(".headNav").hover(function() { $(this).addClass("ons") }); $(".toTops a").fadeIn(); } else { $(".headNav").removeClass("ons"); $(".mhead").removeClass("mheadon"); $(".headNav").hover(function() { $(this).addClass("ons") }, function() { $(this).removeClass("ons") }); $(".toTops a").fadeOut(); }*/ }); jQuery(".Navmeau9 dd").hover( function () { var dlindex = $(this).index() * 36 + 28; jQuery(this) .parents(".Navmeau9") .find(".Navmeau9Line") .stop(true, true) .animate({ top: dlindex }, 300); }, function () { jQuery(this).find(".Navmeau9").stop(true, true).slideUp(300); } ); jQuery(".xxnav li").hover( function () { jQuery(this).find(".Navmeau9").stop(true, true).slideDown(300); }, function () { jQuery(this).find(".Navmeau9").stop(true, true).slideUp(300); } ); $("#close").click(function () { $("#shodaw_search").fadeOut(300); }); $(".msearch").click(function () { $("#shodaw_search").fadeIn(300); }); $(".js_navs").click(function () { var isid = $(this).attr("data-href"); var istop = $(isid).offset().top; $("body,html").animate( { scrollTop: istop, }, 300 ); }); if ($(window).width() < 1280) { addEvent(window, "scroll", function () { var sTop1 = $(window).scrollTop(); if (sTop1 > 100) { $(".mhead").addClass("mheadon"); } else { $(".mhead").removeClass("mheadon"); } }); $(".cureamp1 i").on("click", function () { if ($(this).hasClass("on")) { $(this).removeClass("on"); $(this).parents("li").find(".cureamp2").slideUp(200); } else { $(this).addClass("on"); $(this).parents("li").find(".cureamp2").slideDown(200); } }); $(".popi").on("click", function () { if ($(this).hasClass("on")) { $(this).removeClass("on"); $(this).parents("li").find("ul").slideUp(300); } else { $(this).addClass("on"); $(this).parents("li").find("ul").slideDown(300); } }); // $('.mmeau').on('click', function() { // if ($(this).hasClass('on')) { // $("body,html").removeClass('hidden'); // $('.mhead').removeClass('mheadonxx'); // $(this).removeClass('on mmeauom'); // $(".menuMain").slideUp(300); // $(".menuMain").removeClass('showMain'); // $('.menuBox .list').hide(); // $('.menuBox li').removeClass("on"); // } // else{ // $("body,html").addClass('hidden'); // $('.mhead').addClass('mheadonxx'); // $(this).addClass('on mmeauom'); // $(".menuMain").slideDown(300); // $(".menuMain").addClass('showMain'); // } // $(".storeMain").hide(); // $('.mtoplauge1').removeClass('on'); // $('.yybox').slideUp(300); // }); $(".mtoplauge1").click(function () { $(".mmeau").removeClass("mmeauom"); $(".menuMain").removeClass("showMain"); $(".menuMain").slideUp(300); if ($(this).hasClass("on")) { $(this).removeClass("on"); $(".yybox").slideUp(300); $("body,html").removeClass("hidden"); $(".mhead").removeClass("mheadonxx"); } else { $(this).addClass("on"); $(".yybox").slideDown(300); $("body,html").addClass("hidden"); $(".mhead").addClass("mheadonxx"); } }); $(".onea").on("click", function () { $(this).parents("li").toggleClass("on"); $(this).parents("li").find(".list").slideToggle(); $(this).parents("li").siblings().removeClass("on"); $(this).parents("li").siblings().find(".list").slideUp(); }); $(".twoa").on("click", function () { $(this).parent("li").toggleClass("on"); $(this).parent("li").find(".subtwo").slideToggle(); }); $(".cz_select_title").on("click", function () { $(this).toggleClass("on"); $(this).siblings(".cz_select_list").slideToggle(); }); $(".clm").on("click", function () { $(this).toggleClass("on"); $(this).siblings(".clasub").slideToggle(); }); $(".proList a").click(function () { $(".menuMain").hide(); $(".mmeau").removeClass("mmeauom"); $(".menuMain").removeClass("showMain"); }); } $(".shai_theme").click(function () { if ($(this).hasClass("on")) { $(this).removeClass("on"); $(".popslide_screen .popUls").slideUp(300); } else { $(this).addClass("on"); $(".popslide_screen .popUls").slideDown(300); } }); if ($(".counter").length > 0) { $(".counter").countUp(); } if ($(".aboutbslider").length > 0) { if ($(window).width() > 1000) { Hgroups2(); } else { Hgroups1(); } } $(".abt26em").hover( function () { $(this).removeClass("on").siblings().addClass("on"); }, function () { $(this).siblings().removeClass("on"); } ); $(".index_btn li").click(function () { var isid = $(this).index(); $(this).addClass("hover").siblings().removeClass("hover"); banner.slideTo(isid, 500, false); //鍒囨崲鍒扮涓€涓猻lide锛岄€熷害涓?绉 }); $(".js_ph a").click(function () { var isid = $(this).attr("data-href"); var istop = $(isid).offset().top; $("body,html").animate({ scrollTop: istop }, 300); }); $(".aboutc li").hover(function () { $(this).addClass("on").siblings().removeClass("on"); }); $(".meaujs").click(function () { $(".h-meau").addClass("h-layer--active"); }); $(".searchjs").click(function () { $(".h-search").addClass("h-layer--active"); }); $(".js-close-h-layer").click(function () { $(".h-layer").removeClass("h-layer--active"); }); $(".dwteamawz").click(function () { if ($(this).hasClass("on")) { $(this).removeClass("on"); $(this).siblings(".dwteamadesc").fadeOut(300); } else { $(this).addClass("on"); $(this).siblings(".dwteamadesc").fadeIn(300); } }); $(".zaixx26amrh5").click(function () { var isid = $(this).parents(".zaixx26amrm").index(); if ($(this).hasClass("on")) { $(this).removeClass("on"); $(this).siblings(".zaixx26amrdesc").slideUp(300); } else { $(this).addClass("on"); $(this).siblings(".zaixx26amrdesc").slideDown(300); $(".zaixx26aml img").eq(isid).addClass("on"); $(".zaixx26aml img").eq(isid).siblings().removeClass("on"); } $(this) .parents(".zaixx26amrm") .siblings(".zaixx26amrm") .find(".zaixx26amrh5") .removeClass("on"); $(this) .parents(".zaixx26amrm") .siblings(".zaixx26amrm") .find(".zaixx26amrdesc") .slideUp(300); }); $(".header__toggle-menu").click(function () { $(".header").removeClass("hovFade"); if ($(this).hasClass("is-open")) { $(this).removeClass("is-open"); $("body").removeClass("body-open"); $("html").removeClass("html-open"); $(".meauboxa").removeClass("meau-open"); } else { $(this).addClass("is-open"); $("body").addClass("body-open"); $(".meauboxa").addClass("meau-open"); $("html").addClass("html-open"); } }); $(".c-burger-icon").click(function () { $(".header").removeClass("hovFade"); if ($(this).hasClass("is-active")) { $(this).removeClass("is-active"); $("body").removeClass("body-open"); $("html").removeClass("html-open"); $(".menu_page").removeClass("meau-open"); TweenMax.to($(".menu_page"), 0.5, { force3D: true, opacity: 0, left: "100%", delay: 0.1, ease: Expo.easeInOut, }); TweenMax.to($(".menu-overlay"), 0.3, { force3D: true, opacity: 0, left: "100%", delay: 0.1, ease: Expo.easeInOut, }); } else { $(this).addClass("is-active"); $("body").addClass("body-open"); $("html").addClass("html-open"); $(".menu_page").addClass("meau-open"); TweenMax.to($(".menu_page"), 1.5, { force3D: true, opacity: 1, left: 0, delay: 0.1, ease: Expo.easeInOut, }); TweenMax.to($(".menu-overlay"), 1.2, { force3D: true, opacity: 1, left: 0, delay: 0.1, ease: Expo.easeInOut, }); } }); $(".wap_t_meau").click(function () { if ($(this).hasClass("isactive")) { $("body").removeClass("wapopen"); $(this).removeClass("isactive"); $(".wappubbg,.wapsearch").fadeOut(300); TweenMax.to($(".wap_xlcd"), 0.1, { force3D: true, opacity: 1, top: "100%", delay: 0.3, ease: Expo.easeInOut, }); } else { $("body").addClass("wapopen"); $(this).addClass("isactive"); TweenMax.to($(".wap_xlcd"), 0.1, { force3D: true, opacity: 1, top: 0, delay: 0.3, ease: Expo.easeInOut, }); } }); $(".scrillindex").click(function () { var scrillindex = $(".partnerBoxx").offset().top - 64; $("body,html").animate({ scrollTop: scrillindex }, 350); }); $(".stb1").click(function () { var stb1 = $(".cz_two ").offset().top - 64; $("body,html").animate({ scrollTop: stb1 }, 350); }); $(".wap_search").click(function () { /*if($(this).hasClass('ison')) { $(this).removeClass('ison'); $('.wappubbg').fadeOut(300); $('.wapsearch').fadeOut(300); } else{ $(this).addClass('ison'); $('.wappubbg').fadeIn(500); $('.wapsearch').fadeIn(500); $('.wap_t_meau').addClass('isactive'); } */ $(".wappubbg").fadeIn(500); $(".wapsearch").fadeIn(500); $(".wap_t_meau").addClass("isactive"); TweenMax.to($(".wap_xlcd"), 0.1, { force3D: true, opacity: 1, top: "100%", delay: 0.3, ease: Expo.easeInOut, }); }); $(".wappubbg").click(function () { $(this).fadeOut(200); $(".wapsearch").fadeOut(300); $(".wap_search").removeClass("ison"); }); $(".gtsbmore a").click(function () { if ($(this).hasClass("active")) { $(this).removeClass("on"); $(".gtsbpipwzhide").hide(); } else { $(".gtsbpipwzhide").show(); $(this).addClass("on"); } }); $(".joblistna").click(function () { if ($(this).hasClass("active")) { $(this).removeClass("active"); $(this).siblings(".joblistnb ").slideUp(300); } else { $(this).siblings(".joblistnb ").slideDown(300); $(this).addClass("active"); } $(this) .parents(".joblistn") .siblings(".joblistn") .find(".joblistna") .removeClass("active"); $(this) .parents(".joblistn") .siblings(".joblistn") .find(".joblistnb") .slideUp(300); }); $(".inpagetops").click(function () { var istip = $(window).height(); $("body,html").animate({ scrollTop: istip }, 300); }); $(".pubwapnavm span").click(function () { if ($(this).hasClass("active")) { $(this).removeClass("active"); $(".pubwapnavmsub").slideUp(300); } else { $(this).addClass("active"); $(".pubwapnavmsub").slideDown(300); } }); $(".wap_yy span").click(function () { if ($(this).hasClass("active")) { $(this).removeClass("active"); $(".wap_yyul").slideUp(300); } else { $(this).addClass("active"); $(".wap_yyul").slideDown(300); } }); if ($(".videoabout").length > 0) { var videoabout = document.getElementById("videoabout"); function playVid() { videoabout.play(); } function pauseVid() { videoabout.pause(); } $(".wozsjzximgi").click(function () { $(".videolay,.videolaybg").fadeIn(300); playVid(); }); $(".closevideo").click(function () { $(".videolay,.videolaybg").fadeOut(300); pauseVid(); }); } $(".tsina").click(function () { $(".ewmimg,.videolaybg").fadeIn(300); }); $(".videolaybg").click(function () { $(".ewmimg,.videolaybg,.videolay").fadeOut(300); if ($(".videoabout").length > 0) { pauseVid(); } }); $(".layui-nav-item").hover( function () { $(this).find("dl").addClass("ishowa"); }, function () { $(this).find("dl").removeClass("ishowa"); } ); $(".menu-level-1 span").click(function () { if ($(this).hasClass("is-open")) { $(this).removeClass("is-open"); $(this).siblings(".menu-level").slideUp(500); } else { $(this).addClass("is-open"); $(this).siblings(".menu-level").slideDown(500); } $(this) .parents(".menu-level-1") .siblings(".menu-level-1") .find("span") .removeClass("is-open"); $(this) .parents(".menu-level-1") .siblings(".menu-level-1") .find(".menu-level") .slideUp(500); }); // 氓炉录猫藛陋忙聬艙莽麓垄 $(".navsearch").click(function () { $(this).fadeOut(300); $(".close").fadeIn(); $(".nav").addClass("navon"); $(".h_search").addClass("h_searchon"); $(".hsbg").addClass("hsbgon"); }); $(".close").click(function () { $(this).fadeOut(300); $(".navsearch").fadeIn(300); $(".close").fadeOut(); $(".nav").removeClass("navon"); $(".h_search").removeClass("h_searchon"); $(".hsbg").removeClass("hsbgon"); }); $(".worldoul li").click(function () { $(this).addClass("on"); $(this).siblings("li").removeClass("on"); var isind = $(this).index(); $(".worldtab").eq(isind).siblings().hide(); $(".worldtab").eq(isind).addClass("on").siblings().removeClass("on"); $(".worldtab").eq(isind).fadeIn(300); }); $(".xinxl23b li").hover(function () { $(this).addClass("on").siblings().removeClass("on"); var isindass = $(this).index(); $(".xinxl23cul").eq(isindass).fadeIn(300); $(".xinxl23cul").eq(isindass).siblings().fadeOut(300); }); $(window).scroll(function () { var sct = $(window).scrollTop(); if (sct > 10) { $(".header").removeClass("hovFade"); } if (sct > 300) { $(".xxhead").addClass("scron"); // $(".sliDoNav").slideDown(900); // $("#comHeader").fadeOut(0) } else { $(".xxhead").removeClass("scron"); // $(".sliDoNav").slideUp(500); // $("#comHeader").fadeIn(900) } if (sct > 2000) { $(".starCase").addClass("scrollCase"); } else { $(".starCase").removeClass("scrollCase"); } }); addEvent(window, "scroll", function () { var gotops = $(".gotops,.go19gg"); var isbacktopnum = $(window).scrollTop(); if (isbacktopnum > 500) { gotops.fadeIn(500); } else { gotops.fadeOut(500); } }); if ($(".xflmnavjs").length > 0) { var thisclass = $(".xflmnavjs"); var thisfixed = $(".xflmnav"); var thisfixeddd = $(".xflmnav dd"); addEvent(window, "scroll", function () { var xflmnavjs = thisclass.offset().top - 104; var xflmnavjs2 = $(window).scrollTop(); if (xflmnavjs2 > xflmnavjs) { thisfixed.addClass("active"); } else { thisfixed.removeClass("active"); } }); thisfixeddd.hover(function () { $(this).addClass("on").siblings().removeClass("on"); }); } AOS.init({ once: true, offset: 150, easing: "ease-in-out", duration: 500, }); AOS.refresh();