1jQuery(function($) { 2 3var sliderImg = $('.swiper-container .swiper-slide').length; 4 5if(sliderImg < 2){ 6 7 $('.swiper-container .swiper-pagination').css('display','none'); 8 $('.swiper-container .swiper-button-white').css('display','none'); 9 $('.swiper-container').css('padding-bottom','calc(1.6% + 5px)'); 10 $('.swiper-container .swiper-slide').css('max-width','1280px'); 11 $('.swiper-container .swiper-slide').css('padding','0'); 12 $('.swiper-container .swiper-slide img').css('max-width','100%'); 13 14 return false; 15 16} else { 17 18 swiper = new Swiper('.swiper-container', { 19 speed: 800, 20 slidesPerView: 'auto', 21 centeredSlides : true, 22 watchOverflow: true, 23 roundLengths: true, 24 slideToClickedSlide : true, 25 spaceBetween: 20, 26 loop:true, 27 pagination: { 28 el: '.swiper-pagination', 29 type: 'bullets', 30 clickable: true 31 }, 32 navigation: { 33 nextEl: '.swiper-button-next', 34 prevEl: '.swiper-button-prev', 35 }, 36 autoplay: { 37 delay: 4000, // ã¹ã©ã¤ããåãæ¿ããã¾ã§ã®è¡¨ç¤ºæé(ããªç§) 38 stopOnLast: false, // æå¾ã®ã¹ã©ã¤ãã¾ã§è¡¨ç¤ºããããèªååçã䏿¢ããã 39 disableOnInteraction: true // ã¦ã¼ã¶ã¼ã®ã¹ã¯ã¤ãæä½ãæ¤åºãããèªååçã䏿¢ããã 40 }, 41 breakpoints: { 42 480: { 43 spaceBetween: 5 44 }, 45 768: { 46 spaceBetween: 10 47 } 48 } 49 }); 50 51 $(".swiper-container").hover(function() { 52 (this).swiper.autoplay.stop(); 53 }, function() { 54 (this).swiper.autoplay.start(); 55 }); 56 57} 58 59 60});
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.