$(function(){ history(); overview02(); overview05(); $(".tab-box .tab-a").each(function() { $(this).click(function() { if (!$(this).hasClass("off")) { $(this).addClass("on").siblings().removeClass("on"); var ii=$(this).index(); $(this).parents(".tab-box").find(".tab-b").eq(ii).show().siblings().hide(); } }); }) $(".tab-box").each(function (i) { $(this).find(".tab-a:eq(0)").click(); }); wowDelay(".about-part02 .txt ul",$('.about-part02 .txt ul li').length,"0.2"); wowDelay(".contact-part01 ul",$('.contact-part01 ul li').length,"0.2"); wowDelay(".search-list ul",$('.search-list ul li').length,"0.2"); wowDelay(".sitemap ul",$('.sitemap ul li').length,"0.2"); wowDelay(".publicity-part ul",$('.publicity-part ul li').length,"0.2"); //ScollText(".company-part01 .con .txt"); ScollText(".company-part03 li p"); ScollText(".network-part03 dd .txt .c"); ScollText(".tab-con li dd"); ScollText(".overseas-part li dd .c"); ScollText(".swiper-box .swiper-slide dd .c"); ScollText(".overview-part03 li dd .c"); ScollText(".overview-part04 dd .c"); ScollText(".another dd .c"); ScollText(".innovation-part01 dd .ll"); //ScollText(".pipelinebox"); if($(window).width()<767){ ScollText(".brand-part02 ul"); } /*$(".about-part04 .con span").click(function () { $(".about-part04 .con").toggleClass("on"); })*/ $(".about-part04 .con li.rr").hover(function () { $(".about-part04 .con").addClass("on"); },function(){ $(".about-part04 .con").removeClass("on"); }) //瑙嗛鎾斁鏆傚仠 if ($(".banner-video").length > 0) { //鍙栨秷闈欓煶 /*$(".banner-video video").prop('muted', true); $(document).on("click", ".index-part04 i", function () { $(this).toggleClass("no_muted"); if ($(this).hasClass('no_muted')) { $(".index-part04 video").prop('muted', false); } else { $(".index-part04 video").prop('muted', true); } })*/ //鎾斁鏆傚仠 $(".banner-video").addClass('pause'); $(".banner-video").find("video").trigger("pause"); $(document).on("click", ".banner-video", function () { var this_v = $(this).find("video"); if ($(this).hasClass('pause')) { this_v.trigger("play"); $(this).removeClass('pause'); $(this).addClass('play'); $(this).find("em").hide(); } else { this_v.trigger("pause"); $(this).removeClass('play'); $(this).addClass('pause'); $(this).find("em").show(); } }) } }) function history(){ var _ind = 0; var _len = $(".history .swiper-slide").length; if($(".history .swiper-container").size()>0){ var hisSwiper = new Swiper('.history .swiper-container',{ //slidesPerView: 'auto', //loop:true, slidesPerView:5, spaceBetween: 0, prevButton:'.history .swiper-button-prev', nextButton:'.history .swiper-button-next', breakpoints: { 1023: { slidesPerView: 3, }, 767: { slidesPerView: 1, } } }) } btnJudge(); $(".history .swiper-button-prev").click(function() { _ind--; btnJudge() $(".history .swiper-slide").eq(_ind).addClass("on").siblings().removeClass("on"); $(".history .swiper-slide.on").click(); }) $('.history .swiper-button-next').click(function() { _ind++; btnJudge() $(".history .swiper-slide").eq(_ind).addClass("on").siblings().removeClass("on"); $(".history .swiper-slide.on").click(); }) $(".history .swiper-slide").click(function(){ _ind = $(this).index(); $(this).addClass("on").siblings().removeClass("on"); btnJudge(); }) $(".history .swiper-slide").eq(0).click(); function btnJudge() { //console.log(_ind,_len) if(_ind >= _len - 1) { $('.history .swiper-button-next').addClass("disabled") _ind = _len - 1; } else { $('.history .swiper-button-next').removeClass("disabled") } if(_ind <= 0) { $(".history .swiper-button-prev").addClass("disabled") _ind = 0; } else { $(".history .swiper-button-prev").removeClass("disabled") } } } function overview02(){ var overview02swiper = new Swiper('.swiper-box .swiper-container',{ autoplay:5000, loop:true, //loopedSlides:3, spaceBetween:100, centeredSlides:true, slidesPerView : 'auto', pagination: '.swiper-box .swiper-pagination', nextButton: '.swiper-box .swiper-button-next', prevButton: '.swiper-box .swiper-button-prev', breakpoints: { 768: { slidesPerView: 1, spaceBetween: 20 }, } }); } function overview05(){ var overview05swiper = new Swiper('.overview-part05 .swiper-container',{ spaceBetween:35, slidesPerView : 4, slidesPerGroup : 4, pagination: '.overview-part05 .swiper-pagination', paginationClickable :true, breakpoints: { 767: { slidesPerView: 2, slidesPerGroup : 2, spaceBetween: 10 } } }); } function wowDelay(box,row,delayTime){ $(box).children().each(function(index){ for(var i = 0;i