PageSourceSearch

https://kzm.biz/media/em-plugins/image-gallery/image-gallery.js?v=1.19

js kzm.biz collected 2026-10-05 00:14:03 UTC 2,757 bytes, 99 lines download raw bytes

1(function (j) {
2	j.EM.ImageGallery = {};
3	j.EM.ImageGallery.init = function () {
4		if (j.fn.owlCarousel!==undefined) {
5			var gallerys = jQuery('.images-gallery').not('.init-carousel');
6			gallerys.each(function (gindex, gblock) {
7				gblock = jQuery(gblock);
8                gblock.addClass('owl-carousel');
9				var slides = gblock.children('a');
10
11				slides.wrap('<div class="item"></div>');
12				var date = new Date();
13
14				if (!gblock.attr('id')) {
15					gblock.attr('id', 'slider_' + date.getTime());
16				}
17				var items_cnt = 6;
18
19				var id = gblock.attr('id');
20				var gb_responsive = {
21                    0: {
22                        items: 1,
23                    },
24                    480: {
25                        items: 2,
26                    },
27                    768: {
28                        items: 3,
29                    },
30                    992: {
31                        items: 4,
32                    },
33                    1200: {
34                        items: 5,
35                    },
36                    1500: {
37                        items: 6,
38                    }
39                };
40				if(gblock.data('responsive')){
41					var gb_r =gblock.data('responsive');
42                    gb_r= gb_r.replace(/\'/g,'"');
43					gb_r =  JSON.parse(gb_r);
44                    gb_responsive = {};
45					for(var r in gb_r){
46                        gb_responsive[r] = {'items':gb_r[r]};
47					}
48				}
49
50				j('#' + id).owlCarousel({
51                    loop: false,
52                    margin: 0,
53                    nav: true,
54                    autoWidth:(gblock.data('autowidth')?true:false),
55                    navText: [
56                        "<i class='fa fa-angle-left'></i>",
57                        "<i class='fa fa-angle-right'></i>"
58                    ],
59                    responsiveClass: true,
60                    responsive: gb_responsive,
61                    dots:false,
62                    lazyLoad:true
63				});
64				gblock.addClass('init-carousel');
65			});
66		}
67		if (j.fn.magnificPopup!==undefined) {
68			var pu_gallerys = jQuery('.popup-gallery').not('.init-popup');
69			pu_gallerys.each(function () {
70				j(this).magnificPopup({
71					delegate: 'a',
72					type: 'image',
73					tLoading: 'Загрузка...',
74					mainClass: 'mfp-no-margins mfp-with-zoom',
75					gallery: {
76						enabled: true,
77						navigateByImgClick: true,
78						preload: [
79							0,
80							1
81						]
82					},
83					image: {
84						tError: 'Изображение  не может быть загружено',
85						titleSrc: function (item) {
86							return item.el.attr('title');
87						},
88						verticalFit: true
89					}
90				});
91				j(this).addClass('init-popup');
92			});
93		}
94	};
95	j(window).on('load',function(){
96	j.EM.ImageGallery.init();
97	});
98
99})(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.