PageSourceSearch

https://www.ykb-law.co.il/wp-content/themes/ykb-law/js/main.js?ver=1753295377

js ykb-law.co.il collected 2026-10-07 08:32:59 UTC 6,068 bytes, 197 lines download raw bytes

1(function ($) {
2	var mySwiper = new Swiper('.swiper-container', {
3		speed: 400,
4		loop: true,
5		autoplay: {
6			delay: 5000,
7		},
8		spaceBetween: 100,
9		navigation: {
10			nextEl: '.swiper-button-prev',
11			prevEl: '.swiper-button-next',
12		},
13		on: {
14			slideChangeTransitionStart: function () {
15				$('.swiper-container + .line-animation').removeClass('active');
16			},
17			slideChangeTransitionEnd: function () {
18				$('.swiper-container + .line-animation').addClass('active');
19			},
20			sliderMove: function () {
21				$('.swiper-container + .line-animation').addClass('disabled');
22			},
23			click: function () {
24				$('.swiper-container + .line-animation').addClass('disabled');
25			},
26			doubleTap: function () {
27				var slider = this;
28				if (slider.autoplay.running) {
29					slider.autoplay.stop();
30					$('.swiper-container + .line-animation').addClass('disabled');
31
32				} else {
33					slider.autoplay.start();
34					$('.swiper-container + .line-animation').removeClass('disabled');
35				}
36			},
37		}
38	});
39	var mySwiper2 = new Swiper('.swiper-image-container', {
40		speed: 400,
41		loop: true,
42		autoplay: {
43			delay: 5000,
44		},
45		spaceBetween: 100,
46	});
47	/*min menu*/
48	$('.header__btn').click(function(){
49		if ($(this).attr('data-open') == 'close') {
50			$(this).attr('data-open', 'open');
51			$('.min-menu').addClass('show');
52		} else {
53			$(this).attr('data-open', 'close');
54			$('.min-menu').removeClass('show');
55		}
56	});
57
58	/*min menu close*/
59	$('.min-menu__close').click(function(){
60		$('.header__btn').attr('data-open', 'close');
61		$('.min-menu').removeClass('show');
62		$('.js-min-search').attr('data-open', 'close');
63		$('.min-menu__search').removeClass('show');
64	})
65
66	/*form search on min menu*/
67	$('.js-min-search').click(function(){
68		if ($(this).attr('data-open') == 'close') {
69			$(this).attr('data-open', 'open');
70			$('.min-menu__search').addClass('show');
71		} else {
72			$(this).attr('data-open', 'close');
73			$('.min-menu__search').removeClass('show');
74		}
75	});
76
77	/*form search on menu*/
78	$('.header__item-search .header__link').click(function(){
79		if ($(this).parent().attr('data-open') == 'close') {
80			$(this).parent().attr('data-open', 'open');
81			$('.header__search').addClass('show');
82		} else {
83			$(this).parent().attr('data-open', 'close');
84			$('.header__search').removeClass('show');
85		}
86	});
87
88	/*init aos animation*/
89	AOS.init({
90		duration: 1000,
91		once: true,
92		disable: 'mobile',
93	});
94
95
96	/*fix-menu*/
97
98	$(window).scroll(function() {
99		if ($(document).scrollTop() > 100) {
100			$(".header__content").addClass('fixed-menu');
101
102		} else {
103			$(".header__content").removeClass('fixed-menu');
104		}
105	});
106
107	function acpToggleToolbar() {
108		$('.acp-toggle-toolbar').on('click', function () {
109			$('body').off('click.acpToggleToolbar');
110			$('body').on('click.acpToggleToolbar', function (ev) {
111				if (!$(ev.target).closest('#acwp-toolbar').length) {
112					$('body').off('click.acpToggleToolbar');
113					$('#acwp-toolbar-btn').trigger('click');
114				}
115			});
116		});
117	}
118	acpToggleToolbar();
119
120	$('.header__search label, .min-menu__search label').click(function(){
121		$(this).closest('form').submit();
122	});
123
124
125
126
127
128})(jQuery);
129
130
131
132jQuery(function($) {
133  $('.b-memory__media-thumb-link').on('click', function(e) {
134    e.preventDefault();
135
136    const media = $(this).data('media');
137    if (!media) return;
138
139    let content = '';
140    if (media.type === 'video') {
141        content = `<video class="w-100" controls>
142                     <source src="${media.local_video}" type="video/mp4">
143                     Your browser does not support the video tag.
144                   </video>`;
145      } else if (media.gallery && Array.isArray(media.gallery)) {
146			  const carouselId = 'galleryCarousel';
147
148			  content = `
149			    <div id="${carouselId}" class="carousel slide" data-ride="carousel" data-interval="3000" dir="rtl">
150			      <div class="carousel-inner">
151			        ${media.gallery.map((imgUrl, index) => `
152			          <div class="carousel-item${index === 0 ? ' active' : ''}">
153			            <img src="${imgUrl}" class="img-fluid" alt="Gallery Image ${index + 1}">
154			          </div>
155			        `).join('')}
156			      </div>
157			      <a class="carousel-control-next" href="#${carouselId}
157" role="button" data-slide="prev">
158			        <span class="carousel-control-prev-icon" aria-hidden="true"></span>
159			        <span class="sr-only">Previous</span>
160			      </a>
161			      <a class="carousel-control-prev" href="#${carouselId}" role="button" data-slide="next">
162			        <span class="carousel-control-next-icon" aria-hidden="true"></span>
163			        <span class="sr-only">Next</span>
164			      </a>
165			    </div>`;
166    }
167
168    const modalHtml = `
169      <div class="modal fade" id="dynamicMediaModal" tabindex="-1" role="dialog">
170        <div class="modal-dialog modal-xl  modal-dialog-centered" role="document">
171          <div class="modal-content">
172	          <button type="button" class="close" data-dismiss="modal" aria-label="Close">
173				<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
174				<path fill-rule="evenodd" clip-rule="evenodd" d="M0.44765 0.447405C0.829021 0.0660341 1.44735 0.0660341 1.82872 0.447405L8.62516 7.24385L15.4216 0.447405C15.803 0.0660341 16.4213 0.0660341 16.8027 0.447405C17.184 0.828777 17.184 1.4471 16.8027 1.82847L10.0062 8.62492L16.8027 15.4214C17.184 15.8027 17.184 16.4211 16.8027 16.8024C16.4213 17.1838 15.803 17.1838 15.4216 16.8024L8.62516 10.006L1.82872 16.8024C1.44735 17.1838 0.829021 17.1838 0.44765 16.8024C0.0662782 16.4211 0.0662782 15.8027 0.44765 15.4214L7.24409 8.62492L0.44765 1.82847C0.0662782 1.4471 0.0662782 0.828777 0.44765 0.447405Z" fill="#231F20"/>
175				</svg> 
176	          </button>
177            <div class="modal-body text-center">${content}</div>
178          </div>
179        </div>
180      </div>
181    `;
182
183    $('body').append(modalHtml);
184    const $modal = $('#dynamicMediaModal');
185    $modal.modal('show');
186
187    $modal.on('hidden.bs.modal', function() {
188      $modal.remove();
189    });
190
191    $('#galleryCarousel').carousel({
192		  pause: false,
193		  interval: 3000
194		});
195
196  });
197});

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.