$(function () { if($(".counter").length>0){ $(".counter").countUp(); } jtCase(); swiBox(); wowDelay(".str_global01 ul",$('.str_global01 ul li').length,"0.2"); wowDelay(".str_global02 .tt",$('.str_global02 .tt li').length,"0.2"); wowDelay(".str_global02 .mm",$('.str_global02 .mm li').length,"0.2"); wowDelay(".str_global02 .bb",$('.str_global02 .bb li').length,"0.2"); wowDelay(".str_fc2m02 ul",$('.str_fc2m02 ul li').length,"0.2"); wowDelay(".str_driven01 ul",$('.str_driven01 ul li').length,"0.2"); ScollText($(".imgbox_swi .swiper-slide .c")) if($(".culture_edit").length>0){ ScollText($(".culture_edit")) } /*if($(".dictum_p").length>0){ ScollText($(".dictum_p")) }*/ }) function jtCase(){ if($(".imgbox_swi .swiper-container").length>0){ var imgbox_swiper = new Swiper('.imgbox_swi .swiper-container', { //autoplay: 5000, slidesPerView : 'auto', centeredSlides:true, loop:true, spaceBetween: 30, prevButton:'.imgbox_swi .swiper-button-prev', nextButton:'.imgbox_swi .swiper-button-next', breakpoints: { 1023:{ slidesPerView : 1, spaceBetween: 1, } } }) } } function swiBox(){ if($(".con_pc .swiper-container").length>0){ var swiboxper1 = new Swiper('.con_pc .swiper-container', { //autoplay: 5000, //loop:true, prevButton:'.con_pc .swiper-button-prev', nextButton:'.con_pc .swiper-button-next', }) } if($(".con_phone .swiper-container").length>0){ var swiboxper2 = new Swiper('.con_phone .swiper-container', { //autoplay: 5000, //loop:true, prevButton:'.con_phone .swiper-button-prev', nextButton:'.con_phone .swiper-button-next', }) } } function ScollText(obj){ if($(obj).length>0){ $(obj).mCustomScrollbar({ mouseWheelPixels:500, autoDraggerLength:false, advanced: { autoScrollOnFocus: "" } }); } } function wowDelay(box,row,delayTime){ $(box).children().each(function(index){ for(var i = 0;i