1var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; }; 2if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } } 3{ 4 let window = _____WB$wombat$assign$function_____("window"); 5 let self = _____WB$wombat$assign$function_____("self"); 6 let document = _____WB$wombat$assign$function_____("document"); 7 let location = _____WB$wombat$assign$function_____("location"); 8 let top = _____WB$wombat$assign$function_____("top"); 9 let parent = _____WB$wombat$assign$function_____("parent"); 10 let frames = _____WB$wombat$assign$function_____("frames"); 11 let opener = _____WB$wombat$assign$function_____("opener"); 12 13jQuery(document).ready(function ($) { 14 // Prepare items arrays for lightbox 15 $('.su-lightbox-gallery').each(function () { 16 var slides = []; 17 $(this).find('.su-slider-slide, .su-carousel-slide, .su-custom-gallery-slide').each(function (i) { 18 $(this).attr('data-index', i); 19 slides.push({ 20 src: $(this).children('a').attr('href'), 21 title: $(this).children('a').attr('title') 22 }); 23 }); 24 $(this).data('slides', slides); 25 }); 26 // Enable sliders 27 $('.su-slider').each(function () { 28 // Prepare data 29 var $slider = $(this); 30 // Apply Swiper 31 var $swiper = $slider.swiper({ 32 wrapperClass: 'su-slider-slides', 33 slideClass: 'su-slider-slide', 34 slideActiveClass: 'su-slider-slide-active', 35 slideVisibleClass: 'su-slider-slide-visible', 36 pagination: '#' + $slider.attr('id') + ' .su-slider-pagination', 37 autoplay: $slider.data('autoplay'), 38 paginationClickable: true, 39 grabCursor: true, 40 mode: 'horizontal', 41 mousewheelControl: $slider.data('mousewheel'), 42 speed: $slider.data('speed'), 43 calculateHeight: $slider.hasClass('su-slider-responsive-yes'), 44 loop: true 45 }); 46 // Prev button 47 $slider.find('.su-slider-prev').click(function (e) { 48 $swiper.swipeNext(); 49 }); 50 // Next button 51 $slider.find('.su-slider-next').click(function (e) { 52 $swiper.swipePrev(); 53 }); 54 }); 55 // Enable carousels 56 $('.su-carousel').each(function () { 57 // Prepare data 58 var $carousel = $(this), 59 $slides = $carousel.find('.su-carousel-slide'); 60 // Apply Swiper 61 var $swiper = $carousel.swiper({ 62 wrapperClass: 'su-carousel-slides', 63 slideClass: 'su-carousel-slide', 64 slideActiveClass: 'su-carousel-slide-active', 65 slideVisibleClass: 'su-carousel-slide-visible', 66 pagination: '#' + $carousel.attr('id') + ' .su-carousel-pagination', 67 autoplay: $carousel.data('autoplay'), 68 paginationClickable: true, 69 grabCursor: true, 70 mode: 'horizontal', 71 mousewheelControl: $carousel.data('mousewheel'), 72 speed: $carousel.data('speed'), 73 slidesPerView: ($carousel.data('items') > $slides.length) ? $slides.length : $carousel.data('items'), 74 slidesPerGroup: $carousel.data('scroll'), 75 calculateHeight: $carousel.hasClass('su-carousel-responsive-yes'), 76 loop: true 77 }); 78 // Prev button 79 $carousel.find('.su-carousel-prev').click(function (e) { 80 $swiper.swipeNext(); 81 }); 82 // Next button 83 $carousel.find('.su-carousel-next').click(function (e) { 84 $swiper.swipePrev(); 85 }); 86 }); 87 // Enable lightbox 88 $('.su-lightbox-gallery').on('click', '.su-slider-slide, .su-carousel-slide, .su-custom-gallery-slide', function (e) { 89 e.preventDefault(); 90 var slides = $(this).parents('.su-lightbox-gallery').data('slides'); 91 $.magnificPopup.open({ 92 items: slides, 93 type: 'image', 94 mainClass: 'mfp-img-mobile', 95 gallery: { 96 enabled: true, 97 navigateByImgClick: true, 98 preload: [0, 1], 99 tPrev: su_magnific_popup.prev, 100 tNext: su_magnific_popup.next, 101 tCounter: su_magnific_popup.counter 102 }, 103 tClose: su_magnific_popup.close, 104 tLoading: su_magnific_popup.loading 105 }, $(this).data('index')); 106 }); 107}); 108 109}
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.