PageSourceSearch

https://e-museum.kz/wp-content/themes/e-museum/js/news-gallery.js?ver=1.0.1

js e-museum.kz collected 2026-10-02 20:42:58 UTC 2,485 bytes, 66 lines download raw bytes

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.