// $(".xxa7").hoverDelay(function() { // $(this).find('.xinxl23').fadeIn(300); // $(this).addClass('cur'); // }, function() { // $(this).find('.xinxl23').fadeOut(300); // $(this).removeClass('cur'); // }); $('.xxa7').click(function(){ if($(this).hasClass('cur')) { $(this).find('.xinxl23').fadeOut(300); $(this).removeClass('cur'); $('.xxhead').removeClass('nobaner'); } else{ $(this).find('.xinxl23').fadeIn(300); $(this).addClass('cur'); $('.xxhead').addClass('nobaner'); } $(this).siblings('.xxa7').find('.xinxl23').fadeOut(300); $(this).siblings('.xxa7').removeClass('cur'); }) $('.zwxxah5').click(function(){ if($(this).hasClass('on')) { $(this).removeClass('on'); $(this).siblings('.zwxxasub').fadeOut(300); } else{ $(this).addClass('on'); $(this).siblings('.zwxxasub').fadeIn(300); } }) $(".yyqj_js").hoverDelay(function() { $(this).find('.xialasub').fadeIn(300); }, function() { $(this).find('.xialasub').fadeOut(300); }); $(".xxnav>li").hoverDelay(function() { $(this).find('.xinxl23').fadeIn(300); }, function() { $(this).find('.xinxl23').fadeOut(300); }); $(window).resize(function(){ getbaph(); }) getbaph(); function getbaph(){ if ($(window).width() < 1000) { var mehe = $(window).width() * (400 / 750); var pbg = $('.isbanner').attr('_src'); $('.isbanner').attr('style', pbg); $('.ny15baner').css({ 'height': mehe }); } } $('.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 swipercase1 = new Swiper('.swiper-case1', { effect : 'fade', loop : true, observer:true, observeParents:true, autoplay: { delay: 4000, stopOnLastSlide: false, disableOnInteraction: false, }, navigation: { nextEl: '.casebtnext1', prevEl: '.casebtprev1', } }); var swipercase2 = new Swiper('.swiper-case2', { effect : 'fade', loop : true, observer:true, observeParents:true, autoplay: { delay: 4000, stopOnLastSlide: false, disableOnInteraction: false, }, navigation: { nextEl: '.casebtnext2', prevEl: '.casebtprev2', } }); var swipercase3 = new Swiper('.swiper-case3', { effect : 'fade', loop : true, observer:true, observeParents:true, autoplay: { delay: 4000, stopOnLastSlide: false, disableOnInteraction: false, }, navigation: { nextEl: '.casebtnext3', prevEl: '.casebtprev3', } }); } function Hgroups2(){ var swipercase1 = new Swiper('.swiper-case1', { slidesPerView: 3, centeredSlides: true, observer:true, observeParents:true, loop: true, autoplay: true, navigation: { nextEl: '.casebtnext1', prevEl: '.casebtprev1', } }); var swipercase2 = new Swiper('.swiper-case2', { slidesPerView: 3, centeredSlides: true, observer:true, observeParents:true, loop: true, autoplay: true, navigation: { nextEl: '.casebtnext2', prevEl: '.casebtprev2', } }); var swipercase3 = new Swiper('.swiper-case3', { slidesPerView: 3, centeredSlides: true, observer:true, observeParents:true, loop: true, autoplay: true, navigation: { nextEl: '.casebtnext3', prevEl: '.casebtprev3', } }); $('.casesubd span').click(function(){ $(this).addClass('on').siblings().removeClass('on'); var isths=$(this).index(); $('.casetabdm').eq(isths).show().siblings().hide(); if(isths == 0) { swipercase1.slideTo(1, 600, false); } if(isths == 1) { swipercase2.slideTo(1, 600, false); } if(isths == 2) { swipercase3.slideTo(1, 600, false); } }) } $('.xxsearch').click(function(){ $(this).fadeOut(300); $('.guanbia').fadeIn(); $('.xxhead').addClass('isgb'); $('.h_search').addClass('h_searchon'); $('.hsbg').addClass('hsbgon'); }) $('.guanbia').click(function(){ $('.xxsearch').fadeIn(300); $('.navsearch').fadeIn(300); $(this).fadeOut(300); $('.guanbia').fadeOut(); $('.xxhead').removeClass('isgb'); $('.h_search').removeClass('h_searchon'); $('.hsbg').removeClass('hsbgon'); }) $('.lfoth4').click(function(){ if($(this).hasClass('on')) { $(this).removeClass('on'); $('.lfoth4zgssub,.lfoth4bg').fadeOut(300); } else{ $(this).addClass('on'); $('.lfoth4zgssub,.lfoth4bg').fadeIn(300); } }) $('.lfoth4bg').click(function(){ $('.lfoth4zgssub,.lfoth4bg').fadeOut(300); $('.lfoth4').removeClass('on'); }) $('.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); } } /* 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: { //当屏幕宽度大于等于320 slidesPerView: 1.5, spaceBetween: 15 }, 768: { //当屏幕宽度大于等于768 slidesPerView: 1.5, spaceBetween: 15 }, 1080: { //当屏幕宽度大于等于1280 slidesPerView: 3, spaceBetween: 30 } } }); zaixx26bslider.slideTo(1, 1000, false);//切换到第一个slide,速度为1秒 } */ if($('.newm26mlslider').length>0) { var newm26mlslider = new Swiper('.newm26mlslider',{ effect : 'fade', loop : true, autoplay: { delay: 4000, stopOnLastSlide: false, disableOnInteraction: false, } }); } if($('.kjxxdslider').length>0) { var kjxxdslider = new Swiper('.kjxxdslider', { autoplay: { delay: 4000, disableOnInteraction: false }, slidesPerView : 5, spaceBetween : 25, speed: 1200, centeredSlides: false, loop: false, breakpoints: { 320: { //当屏幕宽度大于等于320 slidesPerView: 1, spaceBetween: 0 }, 768: { //当屏幕宽度大于等于768 }, 1280: { //当屏幕宽度大于等于1280 } } }); } if($('.respcslider').length>0) { var respcslider = new Swiper('.respcslider', { autoplay: { delay: 4000, disableOnInteraction: false }, slidesPerView : 3, spaceBetween : 30, speed: 1200, navigation: { nextEl: '.respcsliderbtnr', prevEl: '.respcsliderbtnl', }, centeredSlides: false, loop: false, breakpoints: { 320: { //当屏幕宽度大于等于320 slidesPerView: 1, spaceBetween: 0 }, 768: { //当屏幕宽度大于等于768 }, 1000: { //当屏幕宽度大于等于1280 slidesPerView : 3, spaceBetween : 30, } } }); } if($('.aboutcslider').length>0) { var aboutcslider = new Swiper('.aboutcslider', { autoplay: { delay: 3000, disableOnInteraction: false }, speed: 1200, navigation: { nextEl: '.aniur', prevEl: '.aniul', }, centeredSlides: true, loop: true, breakpoints: { 320: { //当屏幕宽度大于等于320 slidesPerView: 1.5, spaceBetween: 15 }, 768: { //当屏幕宽度大于等于768 slidesPerView: 1.5, spaceBetween: 15 }, 1280: { //当屏幕宽度大于等于1280 slidesPerView: 3, spaceBetween: 55 } } }); } if($('.culturecslider').length>0) { var culturecslider = new Swiper('.culturecslider',{ loop : false, autoplay: { delay: 4000, stopOnLastSlide: false, disableOnInteraction: false, }, pagination: { el: '.culturecsliderpage', clickable :true, }, breakpoints: { 320: { //当屏幕宽度大于等于320 slidesPerView: 1, autoHeight:true, spaceBetween: 0 }, 768: { //当屏幕宽度大于等于768 slidesPerView: 1, spaceBetween: 0, autoHeight:true }, 1000: { //当屏幕宽度大于等于1280 slidesPerView: 4, spaceBetween: 25 } } }) } if($('.zaixx26cslider').length>0) { var zaixx26cslider = new Swiper('.zaixx26cslider',{ loop : true, autoplay: { delay: 4000, stopOnLastSlide: false, disableOnInteraction: false, }, navigation: { nextEl: '.culturebtnm2', prevEl: '.culturebtnm1', }, breakpoints: { 320: { //当屏幕宽度大于等于320 slidesPerView: 1, autoHeight:true, spaceBetween: 0 }, 768: { //当屏幕宽度大于等于768 slidesPerView: 1, spaceBetween: 0, autoHeight:true }, 1000: { //当屏幕宽度大于等于1280 slidesPerView: 2, spaceBetween: 30 } } }) } 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, autoheight:true, autoplay: { delay: 3000, stopOnLastSlide: false, disableOnInteraction: true, }, pagination: { el: '.bannerpage', clickable :true, }, on: { slideChangeTransitionStart: function(){ if(this.activeIndex==3) $(".counter1").countUp(); }, } }) } if($('.gsflslider').length>0 && $(window).width()<1000) { var gsflslider = new Swiper('.gsflslider',{ effect : 'fade', loop : true, autoHeight:true, autoplay: { delay: 4000, stopOnLastSlide: false, disableOnInteraction: false, }, pagination: { el: '.gsflsliderpage', } }) } 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(); }*/ }); $('#close').click(function() { $('#shodaw_search').fadeOut(300); }) $('.msearch').click(function() { $('#shodaw_search').fadeIn(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(); // }); $('.xlzki').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); // } // }) // $("#hd_referrer").val(document.referrer); function referurl() { window.history.go(-1) // var ref = $("#hd_referrer").val(); // if (ref != "" && ref != "undefined") { // location.href = ref; // } // else { // location.href = history.back(-1); // } } $(".s_arr").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'); }) $('.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'); }) $('.zwdetailbtn').click(function() { $('.msgtjbgs,.msgtjbox').fadeIn(300); }) $('.msgtjclose').click(function() { $('.msgtjbgs,.msgtjbox').fadeOut(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); }) $('.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(); } }) // if($(window).width()>1000) // { // $('.foot1014ca').hover(function(){ // $(this).find('.foot1014csub').fadeIn(300); // },function(){ // $(this).find('.foot1014csub').fadeOut(300); // }) // } // else{ // $(".wapwxtc").click(function(){ // $('.wapwxtcbox img').hide(); // $('.wapwxtc,.wapwxtcbox').fadeOut(300); // }) // $(".foot1014ca1").click(function(){ // var isindd=$(this).index(); // $('.wapwxtcbox img').eq(isindd).show(); // $('.wapwxtcbox img').eq(isindd).siblings().hide(); // $('.wapwxtc,.wapwxtcbox').fadeIn(300); // }) // } $(".wenxindj").click(function(){ $('.wapwxtc,.wapwxtcbox').fadeIn(300); }) $(".wapwxtc").click(function(){ $('.wapwxtc,.wapwxtcbox').fadeOut(300); }) $('.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 > 100) { $(".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: 100, easing: 'ease-in-out', duration: 500 }) AOS.refresh();