text: $(function(){function n(){a=setInterval(function(){$(".attention1").fadeIn(2500,function(){$(".attention1").fadeOut(2500,function(){$(".attention2").fadeIn(2500,function(){$(".attention2").fadeOut(2500)})})})},1e4)}function o(){$(".attention1").fadeIn(2500,function(){$(".attention1").fadeOut(2500,function(){$(".attention2").fadeIn(2500,function(){$(".attention2").fadeOut(2500)})})})}var e,t,a,i=(new TimelineMax,function(){$("#canvas").show(),c=1,$(".page31bg").fadeIn(500,function(){$(".page31bg2").addClass("flipped"),setTimeout(function(){$(".page31BtnClose").css("top","20px"),$(".bravo").show(),$(".page31bg2 > h2").show(),$(".page31bg2 > p").show(),$(".page31bg2 > a").show(),TweenMax.from($(".bravo"),1,{alpha:0,top:210,left:50,ease:Back.easeOut.config(1.7)}),TweenMax.from($(".page31bg2 > h2"),.5,{delay:.5,alpha:0,top:440}),TweenMax.from($(".page31bg2 > p"),.5,{delay:1,alpha:0,top:550}),TweenMax.from($(".page31bg2 > a"),.5,{delay:1.5,alpha:0,top:720}),TweenMax.from($(".page31bg2 > span"),.5,{delay:1.5,alpha:0,top:750})},800),$(".page31BtnClose").on("click",function(){$(".page31box").stop(!1).animate({opacity:0},300,function(){$(".page31bg2").removeClass("flipped"),$(".bravo").hide(),$(".page31bg2 > h2").hide(),$(".page31bg2 > p").hide(),$(".page31bg2 > a").hide(),$(".page31bg").hide(),$(".page31BtnClose").css("top","-100px"),$(".page31box").hide(),$(".page31box").css("opacity",1),o(),n()})})})}),c=1,l=function(){var n=new Swiper(".swiper-container",{pagination:".swiper-pagination",slidesPerView:1,direction:"vertical",paginationClickable:!0,preloadImages:!1,lazyLoading:!0,runCallbacksOnInit:!1,onTransitionEnd:function(o){c=o.activeIndex,console.log("onTransitionEnd:",o.activeIndex),29==c?t=setTimeout(function(){$(".page31box").fadeIn(500,function(){n.slideTo(0,300,!0),i(),$(".openBox").stop(!1).animate({opacity:0},300,function(){$(".openBox").css("z-index",-1),$(".toIndexBtn").show()})}),clearTimeout(t)},3e3):29!=c&&(clearTimeout(t),console.log("clearTimeout!!!"))},onTransitionStart:function(n){clearTimeout(t),console.log("clearTimeout!!!--start")}});$(".openBox").css({opacity:0,"z-index":-1}),$(".numberBox ul").on("click","li",function(){$("#canvas").hide(),clearInterval(a),$(".attention1").hide(),$(".attention2").hide();var o=$(this).data("value")-1,e=Number(o);console.log("clickNum:",e),$(".toIndexBtn").hide(),n.slideTo(e,100,!0),$(".openBox").css("z-index",10).stop(!1).animate({opacity:1},400),setTimeout(function(){$(".btnClose").css("top","20px")},500)}),$(".btnClose").on("click",function(){clearTimeout(t),$(".page31box").fadeIn(500,function(){n.slideTo(0,300,!0),i(),$(".openBox").stop(!1).animate({opacity:0},300,function(){$(".openBox").css("z-index",-1),$(".btnClose").css("top","-100px"),$(".toIndexBtn").show()})})}),$(".goFirstBtn").on("click",function(){n.slideTo(0,300,!0)})};$.getJSON("picAll.json",function(n){e=n;var o=n.length;console.log("picLengthAll_JSON:",o);for(var t="",a=0;a<o;a++)t+='<div class="swiper-slide"><img data-src='+n[a][2]+' class="swiper-lazy"></div>';$(".swiper-wrapper").html(t);var i=n.length;console.log("picLengthAll:",i),l()}),setTimeout(function(){o(),n()},2500),$(".movingVerticalDelay1, .movingVerticalDelay2, .movingVerticalDelay3, .movingVerticalDelay4, .movingVerticalDelay5").not(".on").each(function(n){$(this).addClass("on")}),$(".logo").on("click",function(){window.location.href="indexDynamic.html"}),$(".toIndexBtn").on("click",function(){window.location.href="http://labellavita.com.tw/"})}),$(window).scroll(function(){var n=$(window).height(),o=$(window).scrollTop();clearTimeout(e);var e=setTimeout(function(){$(".goFirstBtn").css("top",n-116+o),$(".logo").css("top",o),$(".btnClose").css("top",o+20),$(".page31BtnClose").css("top",o+20)},400)}).scroll();