1(function($) { 2 'use strict'; 3 4 $(document).ready(function() { 5 6 // ÐниÑиализаÑÐ¸Ñ Swiper - ÐÐРУСÐÐЬ 7 if (typeof Swiper !== 'undefined' && $('.news-gallery-swiper').length) { 8 $('.news-gallery-swiper').each(function() { 9 var $this = $(this); 10 var $counter = $this.closest('.news-gallery-wrapper').find('.news-gallery-current'); 11 12 new Swiper(this, { 13 slidesPerView: 1, 14 spaceBetween: 15, 15 loop: false, // УÐÐ ÐÐÐ loop ÑÑÐ¾Ð±Ñ Ð½Ðµ бÑло дÑблиÑÐ¾Ð²Ð°Ð½Ð¸Ñ 16 navigation: { 17 nextEl: $this.find('.news-gallery-next')[0], 18 prevEl: $this.find('.news-gallery-prev')[0], 19 }, 20 pagination: { 21 el: $this.find('.news-gallery-pagination')[0], 22 clickable: true, 23 }, 24 breakpoints: { 25 640: { 26 slidesPerView: 2, 27 spaceBetween: 15, 28 }, 29 768: { 30 slidesPerView: 3, 31 spaceBetween: 15, 32 }, 33 1024: { 34 slidesPerView: 4, 35 spaceBetween: 20, 36 }, 37 }, 38 on: { 39 slideChange: function() { 40 // realIndex Ð´Ð»Ñ Ð¾Ð±ÑÑного Ñежима (без loop) 41 $counter.text(this.activeIndex + 1); 42 } 43 } 44 }); 45 }); 46 } 47 48 // ÐниÑиализаÑÐ¸Ñ Fancybox ÐÐСÐÐ Swiper 49 if (typeof Fancybox !== 'undefined') { 50 Fancybox.bind('[data-fancybox^="news-gallery"]', { 51 Thumbs: { 52 type: 'classic', 53 }, 54 Toolbar: { 55 display: { 56 left: ['infobar'], 57 middle: [], 58 right: ['zoomIn', 'zoomOut', 'close'], 59 }, 60 }, 61 }); 62 } 63 64 }); 65 66})(jQuery);
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.