PageSourceSearch

https://www.agacieslak.pl/jestem/assets/js/main.js

js agacieslak.pl collected 2026-10-04 07:20:08 UTC 10,829 bytes, 364 lines download raw bytes

1jQuery(function ($) {
2    'use strict';
3	
4        // Header Sticky
5		$(window).on('scroll',function() {
6            if ($(this).scrollTop() > 350){  
7                $('.navbar-area').addClass("is-sticky");
8            }
9            else{
10                $('.navbar-area').removeClass("is-sticky");
11            }
12		});
13
14		// Mean Menu
15		jQuery('.mean-menu').meanmenu({
16			meanScreenWidth: "1199"
17        });
18		
19		// Others Option For Responsive JS
20		$(".others-option-for-responsive .dot-menu").on("click", function(){
21			$(".others-option-for-responsive .container .container").toggleClass("active");
22		});
23
24		// Top Header Responsive JS
25		$(".header-information").on("click", function(){
26			$(".top-header-area").toggleClass("active");
27		});
28
29		// Search JS
30        $(".others-options .search-box i").on("click", function(){
31            $(".search-overlay").toggleClass("search-overlay-active");
32        });
33        $(".search-overlay-close").on("click", function(){
34            $(".search-overlay").removeClass("search-overlay-active");
35		});
36		
37		// Home Slides
38		$('.home-slides').owlCarousel({
39			loop: false,
40			nav: false,
41			dots: true,
42			autoplayHoverPause: false,
43			autoplay: false,
44            items: 1,
45            margin: 5,
46            navText: [
47                "<i class='flaticon-left-arrow'></i>",
48                "<i class='flaticon-right-arrow'></i>"
49            ]
50        });
51        /*$(".home-slides").on("translate.owl.carousel", function(){
52            $(".main-slides-content h1").removeClass("animated fadeInUp").css("opacity", "0");
53            $(".main-slides-content p").removeClass("animated fadeInUp").css("opacity", "0");
54            $(".main-slides-content .slides-btn .default-btn").removeClass("animated fadeInUp").css("opacity", "0");
55            $(".main-slides-content .slides-btn .optional-btn").removeClass("animated fadeInUp").css("opacity", "0");
56        });
57        $(".home-slides").on("translated.owl.carousel", function(){
58            $(".main-slides-content h1").addClass("animated fadeInUp").css("opacity", "1");
59            $(".main-slides-content p").addClass("animated fadeInUp").css("opacity", "1");
60            $(".main-slides-content .slides-btn .default-btn").addClass("animated fadeInUp").css("opacity", "1");
61            $(".main-slides-content .slides-btn .optional-btn").addClass("animated fadeInUp").css("opacity", "1");
62		});*/
63		
64		// Partner Slides
65		$('.partner-slides').owlCarousel({
66			loop: true,
67			nav: false,
68			dots: false,
69			smartSpeed: 500,
70			margin: 30,
71			autoplayHoverPause: true,
72			autoplay: true,
73			
74			responsive: {
75				0: {
76					items: 2
77				},
78				576: {
79					items: 2
80				},
81				768: {
82					items: 4
83				},
84				1200: {
85					items: 6
86				}
87			}
88		});
89
90		// Philosophy Slides
91		$('.philosophy-slides').owlCarousel({
92			loop: true,
93			nav: false,
94			dots: true,
95			autoplayHoverPause: false,
96			autoplay: false,
97            items: 1,
98            margin: 30,
99        });
100        $(".philosophy-slides").on("translate.owl.carousel", function(){
101            $(".philosophy-content h3").removeClass("animated fadeInUp").css("opacity", "0");
102            $(".philosophy-content h4").removeClass("animated fadeInUp").css("opacity", "0");
103            $(".philosophy-content p").removeClass("animated fadeInUp").css("opacity", "0");
104			$(".philosophy-content .philosophy-btn .default-btn").removeClass("animated fadeInUp").css("opacity", "0");
105			$(".philosophy-image").removeClass("animated fadeInUp").css("opacity", "0");
106        });
107        $(".philosophy-slides").on("translated.owl.carousel", function(){
108            $(".philosophy-content h3").addClass("animated fadeInUp").css("opacity", "1");
109            $(".philosophy-content h4").addClass("animated fadeInUp").css("opacity", "1");
110            $(".philosophy-content p").addClass("animated fadeInUp").css("opacity", "1");
111			$(".philosophy-content .philosophy-btn .default-btn").addClass("animated fadeInUp").css("opacity", "1");
112			$(".philosophy-image").addClass("animated fadeInUp").css("opacity", "1");
113		});
114
115		// Products Slides
116		$('.products-slides').owlCarousel({
117			loop: true,
118			nav: true,
119			stagePadding: 150,
120			dots: false,
121            center: true,
122			smartSpeed: 500,
123			margin: 30,
124			autoplayHoverPause: true,
125			autoplay: true,
126			navText: [
127                "<i class='flaticon-left-arrow'></i>",
128                "<i class='flaticon-right-arrow'></i>"
129            ],
130			responsive: {
131				0: {
132					items: 1,
133					stagePadding: 0,
134				},
135				576: {
136					items: 1,
137					stagePadding: 0,
138				},
139				768: {
140					items: 3,
141					stagePadding: 0,
142				},
143				1200: {
144					items: 5,
145				}
146			}
147		});
148
149		// Blog Slides
150		$('.blog-slides').owlCarousel({
151			loop: true,
152			nav: true,
153			dots: false,
154			smartSpeed: 500,
155			margin: 30,
156			autoplayHoverPause: true,
157			autoplay: true,
158			navText: [
159                "<i class='flaticon-left-arrow'></i>",
160                "<i class='flaticon-right-arrow'></i>"
161            ],
162			responsive: {
163				0: {
164					items: 1
165				},
166				576: {
167					items: 1
168				},
169				768: {
170					items: 2
171				},
172				1200: {
173					items: 2
174				}
175			}
176		});
177
178		// Clients Slides
179		$('.clients-slides').owlCarousel({
180			loop: true,
181			nav: true,
182			dots: false,
183			smartSpeed: 500,
184			margin: 30,
185			autoplayHoverPause: true,
186			autoplay: true,
187			items: 1,
188			navText: [
189                "<i class='bx bxs-left-arrow'></i>",
190                "<i class='bx bxs-right-arrow'></i>"
191            ],
192		});
193		
194		// Popup Video
195		/*$('.popup-youtube').magnificPopup({
196			disableOn: 320,
197			type: 'iframe',
198			mainClass: 'mfp-fade',
199			removalDelay: 160,
200			preloader: false,
201			fixedContentPos: false
202		});*/
203
204		// Tabs
205		$('.tab ul.tabs').addClass('active').find('> li:eq(0)').addClass('current');
206		$('.tab ul.tabs li a').on('click', function (g) {
207			var tab = $(this).closest('.tab'), 
208			index = $(this).closest('li').index();
209			tab.find('ul.tabs > li').removeClass('current');
210			$(this).closest('li').addClass('current');
211			tab.find('.tab_content').find('div.tabs_item').not('div.tabs_item:eq(' + index + ')').slideUp();
212			tab.find('.tab_content').find('div.tabs_item:eq(' + index + ')').slideDown();
213			g.preventDefault();
214		});
215
216		// FAQ Accordion
217        $('.accordion').find('.accordion-title').on('click', function(){
218			$(this).toggleClass('active');
219			$(this).next().slideToggle('fast');
220			$('.accordion-content').not($(this).next()).slideUp('fast');
221			$('.accordion-title').not($(this)).removeClass('active');		
222		});
223
224		// Subscribe form
225		$(".newsletter-form").validator().on("submit", function (event) {
226			if (event.isDefaultPrevented()) {
227				formErrorSub();
228				submitMSGSub(false, "Please enter your email correctly.");
229			} 
230			else {
231				event.preventDefault();
232			}
233		});
234		function callbackFunction (resp) {
235			if (resp.result === "success") {
236				formSuccessSub();
237			}
238			else {
239				formErrorSub();
240			}
241		}
242		function formSuccessSub(){
243			$(".newsletter-form")[0].reset();
244			submitMSGSub(true, "Thank you for subscribing!");
245			setTimeout(function() {
246				$("#validator-newsletter").addClass('hide');
247			}, 4000)
248		}
249		function formErrorSub(){
250			$(".newsletter-form").addClass("animated shake");
251			setTimeout(function() {
252				$(".newsletter-form").removeClass("animated shake");
253			}, 1000)
254		}
255		function submitMSGSub(valid, msg){
256			if(valid){
257				var msgClasses = "validation-success";
258			} 
259			else {
260				var msgClasses = "validation-danger";
261			}
262			$("#validator-newsletter").removeClass().addClass(msgClasses).text(msg);
263		}
264		// AJAX MailChimp
265		$(".newsletter-form").ajaxChimp({
266			url: "https://envytheme.us20.list-manage.com/subscribe/post?u=60e1ffe2e8a68ce1204cd39a5&amp;id=42d6d188d9", // Your url MailChimp
267			callback: callbackFunction
268		});
269
270		// Nice Select JS
271		//$('select').niceSelect();
272
273		// Odometer JS
274        $('.odometer').appear(function(e) {
275			var odo = $(".odometer");
276			odo.each(function() {
277				var countNumber = $(this).attr("data-count");
278				$(this).html(countNumber);
279			});
280		});
281
282		// Count Time 
283		function makeTimer() {
284			var endTime = new Date("September 26, 2022 17:00:00 PDT");			
285			var endTime = (Date.parse(endTime)) / 1000;
286			var now = new Date();
287			var now = (Date.parse(now) / 1000);
288			var timeLeft = endTime - now;
289			var days = Math.floor(timeLeft / 86400); 
290			var hours = Math.floor((timeLeft - (days * 86400)) / 3600);
291			var minutes = Math.floor((timeLeft - (days * 86400) - (hours * 3600 )) / 60);
292			var seconds = Math.floor((timeLeft - (days * 86400) - (hours * 3600) - (minutes * 60)));
293			if (hours < "10") { hours = "0" + hours; }
294			if (minutes < "10") { minutes = "0" + minutes; }
295			if (seconds < "10") { seconds = "0" + seconds; }
296			$("#days").html(days + "<span>Days</span>");
297			$("#hours").html(hours + "<span>Hours</span>");
298			$("#minutes").html(minutes + "<span>Minutes</span>");
299			$("#seconds").html(seconds + "<span>Seconds</span>");
300		}
301		setInterval(function() { makeTimer(); }, 0);
302
303		// Input Plus & Minus Number JS
304		$('.input-counter').each(function() {
305			var spinner = jQuery(this),
306			input = spinner.find('input[type="text"]'),
307			btnUp = spinner.find('.plus-btn'),
308			btnDown = spinner.find('.minus-btn'),
309			min = input.attr('min'),
310			max = input.attr('max');
311			
312			btnUp.on('click', function() {
313				var oldValue = parseFloat(input.val());
314				if (oldValue >= max) {
315					var newVal = oldValue;
316				} else {
317					var newVal = oldValue + 1;
318				}
319				spinner.find("input").val(newVal);
320				spinner.find("input").trigger("change");
321			});
322			btnDown.on('click', function() {
323				var oldValue = parseFloat(input.val());
324				if (oldValue <= min) {
325					var newVal = oldValue;
326				} else {
327					var newVal = oldValue - 1;
328				}
329				spinner.find("input").val(newVal);
330				spinner.find("input").trigger("change");
331			});
332		});
333		
334        // WOW JS
335		$(window).on ('load', function (){
336			if ($(".wow").length) { 
337				var wow = new WOW({
338				boxClass:     'wow',      // animated element css class (default is wow)
339				animateClass: 'animated', // animation css class (default is animated)
340				offset:       20,          // distance to the element when triggering the animation (default is 0)
341				mobile:       true, // trigger animations on mobile devices (default is true)
342				live:         true,       // act on asynchronously loaded content (default is true)
343				});
344				wow.init();
345			}
346        });
347
348        // Go to Top
349		$(window).on('scroll', function(){
350			var scrolled = $(window).scrollTop();
351			if (scrolled > 600) $('.go-top').addClass('active');
352			if (scrolled < 600) $('.go-top').removeClass('active');
353		});  
354		$('.go-top').on('click', function() {
355			$("html, body").animate({ scrollTop: "0" },  500);
356		});
357		
358        // Preloader
359		$(window).on('load', function() {
360			$('.preloader-area').fadeOut();
361		});
362
363        
364}(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.