1jQuery(document).ready(function($) { 2 if ($(".dnxte_thumbs_gallery_child").length) { 3 $(".dnxte_thumbs_gallery_child").addClass("swiper-slide"); 4 $(".dnxte_thumbs_gallery_child .et_pb_module_inner").addClass( 5 "dnext-thumbs-gallery-item" 6 ); 7 } 8 9 $(".dnext-thumbs-gallery-top").length && 10 $(".dnext-thumbs-gallery-top").each(function(e) { 11 // thumbs bottom slider gallery 12 const that = 13 "." + 14 $(this) 15 .parent() 16 .parent() 17 .parent() 18 .attr("class") 19 .split(" ") 20 .join("."); 21 22 const thumbsBottomData = $(that + " .dnext-thumbs-gallery-bottom").data(); 23 const thumbsBottomBreakpoint = 24 thumbsBottomData.breakpoints && thumbsBottomData.breakpoints.split("|"); 25 26 const thumbsBottomSwiper = new Swiper( 27 that + " .dnext-thumbs-gallery-bottom", 28 { 29 direction: thumbsBottomData.direction, 30 speed: thumbsBottomData.speed 31 ? parseInt(thumbsBottomData.speed) 32 : 400, 33 spaceBetween: parseInt(thumbsBottomData.spacing), 34 grabCursor: "on" === thumbsBottomData.grab, 35 preventClicksPropagation: true, 36 autoplay: { 37 enabled: 1 === thumbsBottomData.autoplay, 38 delay: thumbsBottomData.delay 39 ? parseInt(thumbsBottomData.delay) 40 : 0, 41 disableOnInteraction: !1, 42 }, 43 slidesPerView: 44 thumbsBottomBreakpoint && parseInt(thumbsBottomBreakpoint[0]), 45 centeredSlides: "on" === thumbsBottomData.center, 46 loop: "on" === thumbsBottomData.loop, 47 breakpoints: { 48 1024: { 49 slidesPerView: 50 thumbsBottomBreakpoint && parseInt(thumbsBottomBreakpoint[0]), 51 }, 52 768: { 53 slidesPerView: 54 thumbsBottomBreakpoint && parseInt(thumbsBottomBreakpoint[1]), 55 }, 56 479: { 57 slidesPerView: 58 thumbsBottomBreakpoint && parseInt(thumbsBottomBreakpoint[2]), 59 }, 60 200: { 61 slidesPerView: 62 thumbsBottomBreakpoint && parseInt(thumbsBottomBreakpoint[2]), 63 }, 64 }, 65 keyboard: { 66 enabled: "on" === thumbsBottomData.keyboard, 67 onlyInViewport: false, 68 }, 69 mousewheel: { 70 enabled: "on" === thumbsBottomData.mouse, 71 invert: true, 72 }, 73 observer: !0, 74 observeParents: !0, 75 observeSlideChildren: !0, 76 watchSlidesVisibility: true, 77 watchSlidesProgress: true, 78 } 79 ); 80 81 if ( 82 1 === thumbsBottomData.autoplay && 83 thumbsBottomData.pauseonhover === 1 84 ) { 85 $(this).on("mouseenter", function() { 86 thumbsBottomSwiper.autoplay.stop(); 87 }); 88 $(this).on("mouseleave", function() { 89 thumbsBottomSwiper.autoplay.start(); 90 }); 91 } 92 // thumbs bottom slider gallery 93 94 const thumbsData = $(this).data(); 95 const thumbsBreakpoint = 96 thumbsData.breakpoints && thumbsData.breakpoints.split("|"); 97 const thumbsSwiper = new Swiper(this, { 98 direction: thumbsData.direction, 99 speed: thumbsData.speed ? parseInt(thumbsData.speed) : 400, 100 spaceBetween: parseInt(thumbsData.spacing), 101 grabCursor: "on" === thumbsData.grab, 102 preventClicksPropagation: true, 103 autoplay: { 104 enabled: 1 === thumbsData.autoplay, 105 delay: thumbsData.delay ? parseInt(thumbsData.delay) : 0, 106 disableOnInteraction: !1, 107 }, 108 slidesPerView: thumbsBreakpoint && parseInt(thumbsBreakpoint[0]), 109 centeredSlides: "on" === thumbsData.center, 110 loop: "on" === thumbsData.loop, 111 breakpoints: { 112 1024: { 113 slidesPerView: thumbsBreakpoint && parseInt(thumbsBreakpoint[0]), 114 }, 115 768: { 116 slidesPerView: thumbsBreakpoint && parseInt(thumbsBreakpoint[1]), 117 }, 118 479: { 119 slidesPerView: thumbsBreakpoint && parseInt(thumbsBreakpoint[2]), 120 }, 121 200: { 122 slidesPerView: thumbsBreakpoint && parseInt(thumbsBreakpoint[2]), 123 }, 124 }, 125 pagination: { 126 el: ".swiper-pagination", 127 dynamicBullets: "on" === thumbsData.paginationBullets, 128 clickable: true, 129 type: thumbsData.paginationType, 130 }, 131 keyboard: { 132 enabled: "on" === thumbsData.keyboard, 133 onlyInViewport: false, 134 }, 135 mousewheel: { 136 enabled: "on" === thumbsData.mouse, 137 invert: true, 138 }, 139 navigation: { 140 nextEl: $(this).siblings(".swiper-button-next")[0], 141 prevEl: $(this).siblings(".swiper-button-prev")[0], 142 }, 143 thumbs: { 144 swiper: thumbsBottomSwiper, 145 }, 146 observer: !0, 147 observeParents: !0, 148 observeSlideChildren: !0, 149 }); 150 151 if (1 === thumbsData.autoplay && thumbsData.pauseonhover === 1) { 152 $(this).on("mouseenter", function() { 153 thumbsSwiper.autoplay.stop(); 154 }); 155 $(this).on("mouseleave", function() { 156 thumbsSwiper.autoplay.start(); 157 }); 158 } 159 }); 160});
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.