1jQuery(document).ready(function($){ 2 var certifySwiper = new Swiper('#certify .swiper-container', { 3 watchSlidesProgress: true, 4 slidesPerView: 'auto', 5 centeredSlides: true, 6 loop: true,autoplay:true, 7 loopedSlides: 5, 8 autoplay: true, 9 navigation: { 10 nextEl: '.swiper-button-next', 11 prevEl: '.swiper-button-prev', 12 }, 13 pagination: { 14 el: '.swiper-pagination', 15 //clickable :true, 16 }, 17 on: { 18 progress: function(progress) { 19 for (i = 0; i < this.slides.length; i++) { 20 var slide = this.slides.eq(i); 21 var slideProgress = this.slides[i].progress; 22 modify = 1; 23 if (Math.abs(slideProgress) > 1) { 24 modify = (Math.abs(slideProgress) - 1) * 0.3 + 1; 25 } 26 translate = slideProgress * modify * 260 + 'px'; 27 scale = 1 - Math.abs(slideProgress) / 5; 28 zIndex = 999 - Math.abs(Math.round(10 * slideProgress)); 29 slide.transform('translateX(' + translate + ') scale(' + scale + ')'); 30 slide.css('zIndex', zIndex); 31 slide.css('opacity', 1); 32 if (Math.abs(slideProgress) > 3) { 33 slide.css('opacity', 0); 34 } 35 } 36 }, 37 setTransition: function(transition) { 38 for (var i = 0; i < this.slides.length; i++) { 39 var slide = this.slides.eq(i) 40 slide.transition(transition); 41 } 42 43 } 44 } 45 46}) 47})
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.