1// Swiper 1 2jQuery(document).ready(function () { 3 if (jQuery('.js-swiper-container1 .swiper-slide').length > 1) { 4 jQuery('.swiper-button-next1').removeClass('d-none'); 5 jQuery('.swiper-button-prev1').removeClass('d-none'); 6 var legoSwiper = new Swiper('.js-swiper-container1', 7 Object.assign({ 8 autoplay: { 9 delay: 6000, 10 disableOnInteraction: false 11 }, 12 effect: 'fade', // slide, fade, cube, coverflow, flip 13 loop: true, 14 navigation: { 15 nextEl: '.swiper-button-next1', 16 prevEl: '.swiper-button-prev1', 17 }, 18 a11y: { 19 prevSlideMessage: currentTranslation.prev, 20 nextSlideMessage: currentTranslation.next, 21 }, 22 simulateTouch: false, 23 pagination: { 24 el: '.swiper-pagination', 25 dynamicBullets: true, 26 }, 27 preloadImages: false, 28 scrollbar: { 29 el: '.swiper-scrollbar', 30 hide: true, 31 }, 32 slidesPerView: 1, 33 speed: 1500, 34 }, 35 swiperOptions1 36 ) 37 ) 38 // TlaÄÃtko pro pozastavenà animace 39 if (legoSwiper.autoplay.running) { 40 jQuery('.swiper-button-pause1').removeClass('d-none').attr('title', currentTranslation.pause).attr('aria-label', currentTranslation.pause); 41 } 42 jQuery('.swiper-button-pause1').on('click keydown', function (e) { 43 if (e.type === 'click' || e.key === 'Enter') { 44 if (legoSwiper.autoplay.running) { 45 legoSwiper.autoplay.stop(); 46 jQuery(this).removeClass('icon-pause').addClass('icon-play').attr('title', currentTranslation.play).attr('aria-label', currentTranslation.play); 47 } else { 48 legoSwiper.autoplay.start(); 49 jQuery(this).removeClass('icon-play').addClass('icon-pause').attr('title', currentTranslation.pause).attr('aria-label', currentTranslation.pause); 50 } 51 } 52 }); 53 } 54}); 55 56// Swiper 5 57jQuery(document).ready(function() { 58 var legoSwiper = new Swiper(".js-swiper-container5", { 59 autoplay: { 60 delay: 6000, 61 }, 62 loop: true, 63 loopFillGroupWithBlank: true, 64 navigation: { 65 nextEl: ".swiper-button-next5", 66 prevEl: ".swiper-button-prev5", 67 }, 68 a11y: { 69 prevSlideMessage: currentTranslation.prev, 70 nextSlideMessage: currentTranslation.next, 71 }, 72 paginationClickable: true, 73 slidesPerGroup: 1, 74 speed: 1500, 75 breakpointsInverse: true, 76 breakpoints: { 77 320: { 78 slidesPerView: 1, 79 spaceBetween: 0, 80 }, 81 620: { 82 slidesPerView: 2, 83 spaceBetween: 10, 84 }, 85 992: { 86 slidesPerView: 3, 87 spaceBetween: 10, 88 }, 89 1200: { 90 slidesPerView: 4, 91 spaceBetween: 20, 92 }, 93 1440: { 94 slidesPerView: 5, 95 spaceBetween: 30, 96 }, 97 }, 98 }); 99 // TlaÄÃtko pro pozastavenà animace 100 if (legoSwiper.autoplay.running) { 101 jQuery('.swiper-button-pause5').removeClass('d-none').attr('title', currentTranslation.pause).attr('aria-label', currentTranslation.pause); 102} 103 jQuery('.swiper-button-pause5').on('click keydown', function (e) { 104 if (e.type === 'click' || e.key === 'Enter') { 105 if (legoSwiper.autoplay.running) { 106 legoSwiper.autoplay.stop(); 107 jQuery(this).removeClass('icon-pause').addClass('icon-play').attr('title', currentTranslation.play).attr('aria-label', currentTranslation.play); 108 } else { 109 legoSwiper.autoplay.start(); 110 jQuery(this).removeClass('icon-play').addClass('icon-pause').attr('title', currentTranslation.pause).attr('aria-label', currentTranslation.pause); 111 } 112 } 113 }); 114});
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.