1 2$(document).ready(function() { 3 4 gsap.registerPlugin(MotionPathPlugin); 5 var gsTimeline = gsap.timeline({ 6 repeat: 2, 7 yoyo: false, 8 repeatDelay: 2 9 }); 10 11 gsTimeline.to("#airport-1",{ 12 duration: 5, 13 repeat: 0, 14 repeatDelay: 3, 15 yoyo: false, 16 ease: "power1.inOut", 17 motionPath:{ 18 path: "#vline-1", 19 align: "#vline-1", 20 autoRotate: true, 21 alignOrigin: [0.5, 0.5] 22 },onStart: function() { 23 24 $(".gbg-2").hide(); 25 $(".gbg-1").show(); 26 27 gsap.to("#v2-text-1,#v2-text-2,#v2-text-3", { opacity: 0, duration: 0.5}); 28 gsap.to('#vline-1,#vuser-1,#v1-circle-1,#v1-circle-2',{ strokeOpacity:1,stroke: "#0ABF53", duration: 0.3}); 29 30 31 gsap.to('#vline-2,#v2-circle-1,#v2-circle-2,#v2-circle-3',{ stroke: "#B9B9B9", duration: 0.3}); 32 gsap.to('#vline-2,#v2-circle-1,#v2-circle-2,#v2-circle-3',{ strokeOpacity:0.3, duration: 0.3}); 33 34 gsap.to('#vuser-2',{ stroke: "#2d374b", duration: 0.3}); 35 gsap.to('#muser-2',{ opacity:0.7, duration: 0.3}); 36 gsap.to('#muser-1',{ opacity:0, duration: 0.3}); 37 38 gsap.to("#popup-cart,#popup-msg", { opacity: 0, duration: 0 }); 39 40 41 gsap.to(".gbg-1,#airport-1", { opacity: 1, duration: 1.3 }); 42 43 },onUpdate: function () { 44 45 var prs = this.progress(); 46 if(Math.round(prs * 100)==41){ 47 gsap.to("#v1-circle-1", { scale: 1.2, duration: 0.5, transformOrigin: "50% 50%", yoyo: true, repeat: 1 }); 48 gsap.to("#v1-text-1", { opacity: 1, duration: 0.5}); 49 }else if(Math.round(prs * 100)==58){ 50 gsap.to("#v1-circle-2", { scale: 1.2, duration: 0.5, transformOrigin: "50% 50%", yoyo: true, repeat: 1 }); 51 gsap.to("#v1-text-2", { opacity: 1, duration: 0.5}); 52 } 53 54 },onComplete:function(){ 55 gsap.to("#popup-cart", { opacity: 1, duration: 1.3 }); 56 } 57 }).to("#airport-2",{ 58 duration: 5, 59 ease: "power1.inOut", 60 delay: 2 , 61 motionPath:{ 62 path: "#vline-2", 63 align: "#vline-2", 64 autoRotate: true, 65 alignOrigin: [0.5, 0.5] 66 }, onStart: function() { 67 $(".gbg-2").show(); 68 $(".gbg-1").hide(); 69 gsap.to('#vline-2,#vuser-2,#v2-circle-1,#v2-circle-2,#v2-circle-3',{ stroke: "#0ABF53", duration: 1.3}); 70 gsap.to('#vline-2,#v2-circle-1,#v2-circle-2,#v2-circle-3',{ strokeOpacity:1, duration: 0.3}); 71 gsap.to('#vline-1,#v1-circle-1,#v1-circle-2',{ strokeOpacity:0.3, stroke: "#B9B9B9", duration: 1.3}); 72 gsap.to('#vuser-1',{ stroke: "#2d374b", duration: 1.3}); 73 gsap.to("#v1-text-1,#v1-text-2", { opacity: 0, duration: 0.5}); 74 gsap.to(".gbg-2,#airport-2", { opacity: 1, duration: 1.3 }); 75 76 gsap.to('#muser-1',{ opacity:0.7, duration: 0.3}); 77 gsap.to('#muser-2',{ opacity:0, duration: 0.3}); 78 79 },onUpdate: function () { 80 81 var prs = this.progress(); 82 if(Math.round(prs * 100)==39){ 83 84 gsap.to("#v2-circle-1", { scale: 1.2, duration: 0.5, transformOrigin: "50% 50%", yoyo: true, repeat: 1 }); 85 gsap.to("#v2-text-1", { opacity: 1, duration: 0.5}); 86 }else if(Math.round(prs * 100)==49){ 87 88 gsap.to("#v2-circle-2", { scale: 1.2, duration: 0.5, transformOrigin: "50% 50%", yoyo: true, repeat: 1 }); 89 gsap.to("#v2-text-2", { opacity: 1, duration: 0.5}); 90 }else if(Math.round(prs * 100)==62){ 91 92 gsap.to("#v2-circle-3", { scale: 1.2, duration: 0.5, transformOrigin: "50% 50%", yoyo: true, repeat: 1 }); 93 gsap.to("#v2-text-3", { opacity: 1, duration: 0.5}); 94 } 95 96 },onComplete:function(){ 97 gsap.to("#popup-msg", { opacity: 1, duration: 1.3 }); 98 } 99 }); 100 101 var main02 = new Swiper('.main02-swiper', { 102 slidesPerView: 1, 103 spaceBetween: 30, 104 loop: true, 105 speed: 1000, 106 autoplay: {delay: 3000,}, 107 pagination: { 108 el: '.main02-swiper-pagination', 109 clickable: true, 110 }, 111 navigation: { 112 nextEl: '.main02-swiper-button-next', 113 prevEl: '.main02-swiper-button-prev', 114 }, 115 }); 116 117 function rand_index(){ 118 var rSwiper = Math.floor(Math.random()*($('.main10-swiper .swiper-slide').length)); 119 return parseInt(rSwiper); 120 } 121 var main10 = new Swiper('.main10-swiper',{ 122 navigation: { 123 nextEl: '.main10-swiper-button-next', 124 prevEl: '.main10-swiper-button-prev', 125 }, 126 loop: true, 127 initialSlide: rand_index(), 128 slidesPerView: 1, 129 spaceBetween: 30, 130 pagination: { 131 el: '.main10-swiper-pagination', 132 clickable: true, 133 }, 134 breakpoints: { 135 580: { 136 slidesPerView: 1 137 }, 138 768: { 139 slidesPerView: 2 140 }, 141 1024: { 142 slidesPerView: 3 143 }, 144 } 145 }); 146 147 var main07 = new Swiper(".main07-flipster", { 148 loop: true, 149 speed: 1000, 150 autoplay: {delay: 3000,}, 151 effect: 'coverflow', 152 grabCursor: true, 153 centeredSlides: true, 154 slidesPerView: 'auto', 155 coverflowEffect: {rotate: 0,stretch: 130,depth:600,modifier: 1,slideShadows: true} 156 }); 157 var main03 = new Swiper(".main03-cube", { 158 effect: "cube", 159 grabCursor: true, 160 initialSlide:3, 161 loop: true, 162 speed: 1000, 163 autoplay: {delay: 2000,}, 164 speed: 500, 165 loop: true, 166 rotate: true, 167 cubeEffect: { slideShadows: false,}, 168 mousewheel: { invert: false }, 169 }); 170 171 ScrollTrigger.create({ 172 trigger: "#main-section", 173 start: "top top", 174 end: "bottom top", 175 onEnter: function() { 176 $(".navbar-nav-wrap,#header").removeClass('on'); 177 178 }, 179 onLeave: function() { 180 181 182 if (!window.matchMedia("(max-width: 576px)").matches) { 183 $("#logo-ci").attr("viewBox","0 0 110 110"); 184 } 185 $('.logocolor').attr('stroke','#000') 186 $('.navbar-toggler').css('color',"#000") 187 $(".navbar-nav-wrap,#header").addClass('on'); 188 }, 189 onEnterBack: function() { 190 $(".navbar-nav-wrap,#header").removeClass('on'); 191 if (!window.matchMedia("(max-width: 576px)").matches) { 192 $("#logo-ci").attr("viewBox","0 0 453 110"); 193 } 194 $('.logocolor').attr('stroke','#fff') 195 $('.navbar-toggler').css('color',"#fff") 196 }, 197 onLeaveBack: function() { 198 $(".navbar-nav-wrap,#header").removeClass('on'); 199 if (!window.matchMedia("(max-width: 576px)").matches) { 200 $("#logo-ci").attr("viewBox","0 0 453 110"); 201 } 202 $('.logocolor').attr('stroke','#fff'); 203 $('.navbar-toggler').css('color',"#fff") 204 } 205 });
206 if (/modal=policy(&|$)/.test(location.search)) $('a[data-modal="/home/personalPolicy.apz"]').trigger('mouseup'); 207}); 208
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.