PageSourceSearch

https://www.gangstagroup.sk/includes/rotate_active_images/rotate_active_images_detail.js?905860

js gangstagroup.sk collected 2026-10-06 19:08:03 UTC 1,926 bytes, 63 lines download raw bytes

1/**
2 * @author Hucci
3 */
4var js_rotate_active_images_detail = {
5	options: {
6		slidesToShow: 1,
7		slidesToScroll: 1,
8		infinite: true,
9		variableWidth: false,
10		prevArrow: '<button type="button" class="slick-prev slick-arrow" title="'+ cms_js_prev +'"><i class="fa fa-chevron-left" aria-hidden="true"></i></button>',
11		nextArrow: '<button type="button" class="slick-next slick-arrow" title="'+ cms_js_next +'"><i class="fa fa-chevron-right" aria-hidden="true"></i></button>',
12		dots: true,
13		autoplay: true,
14		autoplaySpeed: 3000
15	},
16
17	/**
18	 * Init function
19	 * @param {Object} data - Custom options
20	 */
21	init: function(data) {
22		var flypageImageElem = jQuery('.flypage-slick-images');
23		var defaultOptions = {};
24
25		if (typeof data === 'object') {
26
27			this.options = jQuery.extend(defaultOptions, this.options, data);
28		}
29		if (flypageImageElem.length) {
30			if ( typeof generateXXLLink === 'function' ) {
31				flypageImageElem.on('init change afterChange', function () {
32					jQuery(".flypage-image a:first").attr('href', jQuery('.slick-active').attr('href'));
33				});
34			}
35			// test
36			if (typeof js_CS_Config_lighthouse6_opt === 'undefined') {
37				if (!flypageImageElem.hasClass('slick-initialized')) {
38					flypageImageElem
39						.slick(this.options);
40				}
41			}
42			if (typeof fancyboxOptions === 'undefined') {
43				fancyboxOptions = {};
44			}
45			flypageImageElem
46				.find('a:not(.slick-cloned)')
47				.fancybox(fancyboxOptions);
48			
49			var selector = '.slick-slide:not(.slick-cloned)';
50			jQuery(document).on('click', '.flypage-slick-images .slick-cloned', function (e) {
51				jQuery(selector)
52					.eq((jQuery(e.currentTarget).attr("data-slick-index") || 0) % jQuery(selector).length)
53					.trigger("click.fb-start", {
54						$trigger: jQuery(this)
55					});
56				return false;
57			});
58			if (typeof (js_rotate_active_images_detail_after_init) !== 'undefined') {
59				js_rotate_active_images_detail_after_init();
60			}
61		}
62	}
63};

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.