PageSourceSearch

https://ogrod-japonski.wroclaw.pl/wp-content/plugins/easy-accordion-free/public/assets/js/script.js?ver=2.3.8

js ogrod-japonski.wroclaw.pl collected 2026-10-02 20:55:06 UTC 3,413 bytes, 84 lines download raw bytes

1; (function ($) {
2
3	function isVideo(url) {
4		var regex = /^(https?:\/\/)?((www\.)?youtube\.com|vimeo\.com|dailymotion\.com|wistia\.com|hubspot\.com|sproutvideo\.com|hippovideo\.io|brightcove\.com|spotlightr\.com|vidyard\.com)\/.+$/i;
5		return regex.test(url);
6	}
7
8	$('body').find('.sp-easy-accordion').each(function () {
9		var accordion_id = $(this).attr('id');
10		var _this = $(this);
11		var ea_active = _this.data('ea-active');
12		var ea_mode = _this.data('ea-mode');
13		var preloader = _this.data('preloader');
14		var scroll_active_item = _this.data('scroll-active-item'),
15			offset_to_scroll = _this.data('offset-to-scroll');
16		if (ea_mode === 'vertical') {
17			if (ea_active === 'ea-click') {
18				$("#" + accordion_id).each(function () {
19					$("#" + accordion_id + " > .ea-card > .ea-header").on("click", function () {
20						$("#" + accordion_id + " > .ea-card > .sp-collapse").on("hide.bs.spcollapse", function (e) {
21							$(this).parent(".ea-card").removeClass("ea-expand");
22							$(this).siblings(".ea-header").find(".ea-expand-icon").addClass('ea-icon-expand-plus').removeClass('ea-icon-expand-minus');
23							e.stopPropagation();
24						})
25						$("#" + accordion_id + " > .ea-card > .sp-collapse").on("show.bs.spcollapse", function (e) {
26							$(this).parent(".ea-card").addClass("ea-expand");
27							$(this).siblings(".ea-header").find(".ea-expand-icon").addClass('ea-icon-expand-minus').removeClass('ea-icon-expand-plus');
28							e.stopPropagation();
29						})
30					});
31				});
32				$("#" + accordion_id + " > .ea-card .ea-header button ").on('click', function (event) {
33					event.preventDefault();
34				});
35			}
36			if (ea_active === 'ea-hover') {
37				$("#" + accordion_id + " > .ea-card").mouseover(function () {
38					$(this).children(".sp-collapse").spcollapse("show");
39					if ($('.sp-collapse.show').length > 1) {
40						$(this).children(".sp-collapse").spcollapse("hide");
41					}
42				});
43				$("#" + accordion_id + " > .ea-card > .sp-collapse").on("hide.bs.spcollapse", function (e) {
44					$(this).parent(".ea-card").removeClass("ea-expand");
45					$(this).siblings(".ea-header").find(".ea-expand-icon").addClass('fa-plus').removeClass('fa-minus');
46					e.stopPropagation();
47				})
48				$("#" + accordion_id + " > .ea-card > .sp-collapse").on("show.bs.spcollapse", function (e) {
49					$(this).parent(".ea-card").addClass("ea-expand");
50					$(this).siblings(".ea-header").find(".ea-expand-icon").addClass('fa-minus').removeClass('fa-plus');
51					e.stopPropagation();
52				})
53			};
54		}
55		var preloader_id = $('#' + accordion_id + ' .accordion-preloader').attr('id');
56		if (preloader_id) {
57			$(document).ready(function () {
58				$('#' + preloader_id).animate({ opacity: 0, }, 500).remove();
59				$('#' + accordion_id).find('.ea-card').animate({ opacity: 1 }, 500);
60			});
61		}
62
63		
64		// Scroll to active item scripts.
65		if (scroll_active_item) {
66			$("#" + accordion_id + ' .sp-collapse').on('show.bs.spcollapse', function (e) {
67				var $panel = $(this).closest('.ea-card');
68				setTimeout(function (e) {
69					$('html,body').animate({
70						scrollTop: $panel.offset().top - offset_to_scroll
71					}, 500);
72				}, 500)
73			});
74		}
75	});
76
77	$('.sp-easy-accordion iframe:not(.wp-ea-iframe,.skip)').each(function(){
78		var url = $(this).attr('src');
79		if (isVideo(url)) {
80			// This is a video URL
81			$(this).addClass('wp-ea-iframe').wrap("<div class='wp-easy-accordion-iframe-container'></div>");
82		}
83	});
84})(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.