function swiperupdatesize(name){name.updateSize();} $(function(){$.fn.numberRock=function(options){var defaults={lastNumber:100,   duration:1000,   easing:'linear'};var opts=$.extend({},defaults,options);$(this).animate({num:"numberRock",},{duration:opts.duration,easing:opts.easing,complete:function(){},step:function(a,b){$(this).html(parseInt(b.pos*opts.lastNumber));}});},$.extend({"typers":function(name,data){var instance=new Typewriter(name[0],{strings:data,autoStart:true,loop:true});},"swiperOption":function(name,pagin,nex,per,lazyclass,View,Between){var Option=new Swiper(name,{autoHeight:true,touchStartPreventDefaul:false,slidesPerView:View,spaceBetween:Between,observer:true,observeParents:true,lazy:{elementClass:lazyclass,loadPrevNext:true,},navigation:{nextEl:nex,prevEl:per,},on:{lazyImageReady:function(slideEl,imageEl){Option.updateSize();}},pagination:{el:pagin,clickable:true,}});},"swiperm2":function(name,pagin,nex,per,lazyclass,autos){var auto=autos+"000";if(auto==30){auto='10000000';} var swiperm2s=new Swiper(name,{autoHeight:true,loop:true,observer:true,touchStartPreventDefaul:false,observeParents:true,autoplay:{delay:auto},lazy:{elementClass:lazyclass,loadPrevNext:true,},on:{lazyImageReady:function(slideEl,imageEl){swiperm2s.updateSize();}},navigation:{nextEl:nex,prevEl:per,},pagination:{el:pagin,clickable:true,dynamicBullets:true,}});},"swipetab":function(name,btn,lazyclass){var content_tab_swiper=new Swiper(name,{observer:true,touchStartPreventDefaul:false,preventClicks:false,observeParents:true,autoHeight:true,lazy:{elementClass:"lazyload",loadPrevNext:true,},slidesPerView:1,spaceBetween:20,allowTouchMove:false,on:{slideChangeTransitionStart:function(){btn.children('.active').removeClass('active') btn.children('a').eq(content_tab_swiper.activeIndex).addClass('active')}},});btn.children('a').on('click',function(e){e.preventDefault() btn.children('.active').removeClass('active') $(this).addClass('active') content_tab_swiper.slideTo($(this).index());}) btn.children('a').mouseover(function(e){e.preventDefault()});},"swipepostsloop":function(name,btn,lazyclass,thistab,loops,autos,sped,nex,per,paginationbtn,pyl,effects,mouse){if(effects=='slide'){parallaxs=true;}else{parallaxs=false;} if(mouse==''){mouse='click'} var swipeposts=new Swiper(name,{touchStartPreventDefaul:false,preventClicks:false,observer:true,observeParents:true,speed:sped,effect:effects,slidesPerView:1,loop:true,parallax:parallaxs,autoHeight:true,fadeEffect:{crossFade:true},lazy:{elementClass:"lazyload",loadPrevNext:true,},autoplay:{delay:autos},spaceBetween:pyl,navigation:{nextEl:nex,prevEl:per},pagination:{el:paginationbtn,clickable:true,renderBullet:function(index,className){var cssn=loops.children(".btn").eq(1).attr("class");var st=loops.children(".btn").attr("style");return'
'+loops.children(".btn").eq(index).html()+'
';},},breakpoints:{1025:{}}});if(mouse=='mouseover'){for(i=0;ifix_h){fexd.css("width",as_w+"px");fexd.addClass("xf_div2");if(botm>asdiebttom){fexd.addClass("xf_div3");}else{fexd.removeClass("xf_div3");}}else{fexd.css("width","100%");fexd.removeClass("xf_div2");}}});}},"slide":function(name,lazyclass,pagin,nex,per,effects,aoto,loops){if(aoto==0){aoto=1000000;} var slid=new Swiper(name,{touchStartPreventDefaul:false,preventClicks:false,observer:true,observeParents:true,loop:loops,effect:effects,parallax:true,autoplay:{delay:(aoto*1000)},speed:2000,lazy:{elementClass:lazyclass,loadPrevNext:true,loadPrevNextAmount:2,},on:{lazyImageReady:function(slideEl,imageEl){slid.updateSize();},transitionStart:function(){slide=this.slides;$(".pcimg_pic").each(function(){var bg2=$(this).attr("data-background");if(bg2){$(this).css("background-image",'url('+bg2+')');}});$(".movepic").each(function(){var bg=$(this).attr("data-src");if(bg){$(this).attr('src',bg);}});}},navigation:{nextEl:nex,prevEl:per},pagination:{el:pagin,clickable:true}});},"listul":function(name,lazyclass,list,effect,aoto,nex,per,center,p768,p640,pagin,line,loops,Between,zk){if(aoto==0||aoto==30){aoto=100000000;} var listulss=new Swiper(name,{touchStartPreventDefaul:false,speed:1000,slidesPerView:list,spaceBetween:Between,observer:true,observeParents:true,slidesPerColumn:line,slidesPerColumnFill:'row',loop:loops,autoplay:{delay:(aoto*1000)},lazy:{elementClass:lazyclass,loadPrevNext:true,},pagination:{el:pagin,clickable:true,},centeredSlides:center,watchSlidesProgress:center,navigation:{nextEl:nex,prevEl:per},breakpoints:{100:{slidesPerView:p640,spaceBetween:Between,},768:{slidesPerView:p768,spaceBetween:Between,},1024:{slidesPerView:list,spaceBetween:Between,},},on:{setTranslate:function(){slides=this.slides;for(i=0;i
'+bttile[index]+'
';}else{return'';};},},});$(".downs").click(function(){s1.slideNext();}) var isAtEdge=false;var s2=new Swiper(name2,{preventClicks:false,observer:true,touchStartPreventDefault:false,direction:'vertical',mousewheel:{sensitivity:0.5,releaseOnEdges:true,},height:h,watchSlidesProgress:true,nested:true,slidesPerView:'auto',resistanceRatio:0,freeMode:{enabled:true,momentum:false,momentumBounce:false,},scrollbar:{el:pagin,},on:{imagesReady:function(){this.updateSize();this.updateAutoHeight();const swiperContainer=this.el;const minHeight=window.innerHeight;if(swiperContainer.clientHeight0&&this.progress<1){s1.mousewheel.disable();isAtEdge=false;}}}});$(".swiper-mian").children(".swiper-wrapper").children(".themepark-slidearea").each(function(index){var windows=$(".header").width();if(windows>1024){if($(this).hasClass("MovePnly")){$(this).remove();}}else{if($(this).hasClass("PcOnly")){$(this).remove();}} if($(this).index()==0){$(this).addClass("ani-slide");} s1.update();});},"tableswiper":function(name,lazyclass,View,Between,pagin,nex,per){var table=new Swiper(name,{preventClicks:false,autoHeight:true,observer:true,touchStartPreventDefaul:false,observeParents:true,slidesPerView:View,spaceBetween:Between,lazy:{elementClass:lazyclass,loadPrevNext:true,},navigation:{nextEl:nex,prevEl:per},breakpoints:{100:{slidesPerView:1,spaceBetween:0,},768:{slidesPerView:2,spaceBetween:Between,},1024:{slidesPerView:View,spaceBetween:Between,allowTouchMove:false},},pagination:{el:pagin,clickable:true}});},"donghua":function(name){var a=$(name).offset().top;if($(window).scrollTop()>=$(name).offset().top-650){$(name).addClass("actions") $(name).removeClass("dsxws")}},"historynox":function(name,n,p){var his=new Swiper(name,{observer:true,touchStartPreventDefaul:false,watchSlidesProgress:true,nested:true,slidesPerView:'auto',freeMode:true,});n.on('click',function(e){his.setTransition(1000);if(his.isEnd){}else{var spy=his.getTranslate()-400;his.setTranslate(spy)}});p.on('click',function(e){his.setTransition(1000);var spy=his.getTranslate()+400;if(his.getTranslate()<0){his.setTranslate(spy)}});},"imgtextswiper":function(name1,name2,h,p1){var imgtext=new Swiper(name1,{spaceBetween:10,slidesPerView:h,watchSlidesVisibility:true,lazy:{loadPrevNext:true,loadPrevNextAmount:10,},});var imgtext2=new Swiper(name2,{thumbs:{swiper:imgtext,autoScrollOffset:1,},pagination:{el:p1,clickable:true}});},"swiperproduct":function(name,list,list2,list3,Between,pagin,nex,per){var Option=new Swiper(name,{autoHeight:true,loop:true,autoHeight:true,observer:true,observeParents:true,pagination:{el:pagin,clickable:true},navigation:{nextEl:nex,prevEl:per},autoplay:{delay:(3000)},lazy:{elementClass:'lazyload',loadPrevNext:true,},breakpoints:{100:{slidesPerView:list3,spaceBetween:Between,},768:{slidesPerView:list2,spaceBetween:Between,},1024:{slidesPerView:list,spaceBetween:Between,},}});}});});$.fn.swiperallup=function(){var windows=$(".header").width();var hs;if(windows>1023){lazyclass="swiper-lazy",hs=$(window).height()}else{lazyclass="swiper-move-lazy",hs=$(window).height()-60} $(".post_gallery_nomral").each(function(index){var autos=$(this).parent(".wp-block-themepark-block-themepark-swiper").attr("data-auto");if(!autos||autos==0){autos=3;} $.swiperm2($(this),$(this).find(".pagination"),$(this).find(".swiper-next"),$(this).find(".swiper-prev"),lazyclass,autos);});$(".typerbox").each(function(){var data=[];$(this).children("span").each(function(){data.push($(this).html())});var name=$(this).children("p#tpyerp") $.typers(name,data);});$(".themepark_imgtext").each(function(index){var name1=$(this).children(".themepark_imgtext_text").children(".imgtext_gabox");var name2=$(this).children(".themepark_imgtext_img").children(".imgtext_galley");var h=name1.attr("data-li");var p1=name2.children(".pagination");$.imgtextswiper(name1,name2,h,p1);});$(".list_swiper_tap").each(function(index){var name=$(this).children(".list_swiper_tap_in");var row=$(this).children(".list_swiper_tap_in").attr("rows");var ms=$(this).children(".list_swiper_tap_in").attr("ma");var pagins=$(this).children(".pagination");var nex=$(this).children(".list_swiper_tap_in").children(".swiper-next") var per=$(this).children(".list_swiper_tap_in").children(".swiper-prev") $.tableswiper(name,lazyclass,row,ms,pagins,nex,per);});$(".product_loop.mian_loop.swiper-container").each(function(){var name=$(this);var data=$(this).attr("data");var pagin=$(this).children(".pagination");var nex=$(this).children(".swiper-next");var per=$(this).children(".swiper-prev");var list=data;var list2=3;var list3=2;Between=15;if(data==1){list=1;list2=1;list3=1;Between=0;} if(data==2){list=2;list2=2;list3=1;Between=10;} $.swiperproduct(name,list,list2,list3,Between,pagin,nex,per);});$(".themepark-history-gdz").each(function(index){$.historynox($(this),$(this).children(".themepark-history_n"),$(this).children(".themepark-history_p"));});$(".swiper-mian").each(function(index){$(this).css("height",hs);var bhtitle=[];var bhtitlec=[];var datahed=[];var tt=$(this);var gs=$(this).children(".themepark-slidearea-wrapper").find(".themepark-slidearea").length;for(i=0;i1){$.slide($(this).children(".swiper-container"),lazyclass,$(this).children(".swiper-container").find(".pagination"),$(this).children(".swiper-container").find(".swiper-next"),$(this).children(".swiper-container").find(".swiper-prev"),$(this).attr("datafade"),$(this).attr("autoplays"),loops);}else{$(this).children(".swiper-container").children(".swiper-wrapper").children(".swiper-slide").addClass("swiper-slide-active")}});$(".list_ul_box_out").each(function(index){var effects=$(this).attr("progresseffect");var list=$(this).attr("swlist");var auto=$(this).attr("autoplays");var zk='';if($(this).hasClass("autozk")){zk=11;} var center,loops,Between;var p768;var p640;if(effects==0||effects==4||effects==''){center=false;}else{center=true;} if(effects==0){if(list>5){p768=5,p640=3}else{p768=list;p640=2}}else{if(list>5){p768=5,p640=3}else{p768=list;p640=2}} if(effects==4){Between=0;if($(this).attr("line")>1){center=false;}}else{Between=10;} if(effects==1){Between=0;} if($(this).attr("loops")=='no'){auto=3000;loops=false}else{loops=true} if($(this).hasClass("autozk")||$(this).hasClass("autoheight")){p640=1} $.listul($(this).children(".swiper-container"),lazyclass,$(this).attr("swlist"),$(this).attr("progresseffect"),auto,$(this).children(".swiper-container").children(".swiper-next"),$(this).children(".swiper-container").children(".swiper-prev"),center,p768,p640,$(this).children(".swiper-container").children(".pagination"),$(this).attr("line"),loops,Between,zk);});}