PageSourceSearch

https://blanchedalmond-swan-793021.hostingersite.com/wp-content/themes/eduker/assets/js/main.js?ver=1791000804

js blanchedalmond-swan-793021.hostingersite.com collected 2026-10-03 04:15:00 UTC 9,722 bytes, 398 lines download raw bytes

1/***************************************************
2==================== JS INDEX ======================
3****************************************************
401. PreLoader Js
5
6
7****************************************************/
8
9(function ($) {
10	"use strict";
11
12	var windowOn = $(window);
13	////////////////////////////////////////////////////
14	// 01. PreLoader Js
15	windowOn.on('load',function() {
16		$("#loading").fadeOut(500);
17	});
18
19
20	$(".header__lang > ul > li").on('click',function(){
21	    $(".header__lang ul ul").slideToggle();
22	});	
23
24	////////////////////////////////////////////////////
25	// 02. Mobile Menu Js
26	$('#mobile-menu').meanmenu({
27		meanMenuContainer: '.mobile-menu',
28		meanScreenWidth: "991",
29		meanExpand: ['<i class="fal fa-plus"></i>'],
30	});
31
32	////////////////////////////////////////////////////
33	// 03. Sidebar Js
34	$(".offcanvas-toggle-btn").on("click", function () {
35		$(".offcanvas__area").addClass("opened");
36		$(".body-overlay").addClass("opened");
37	});
38	$(".offcanvas__close-btn").on("click", function () {
39		$(".offcanvas__area").removeClass("opened");
40		$(".body-overlay").removeClass("opened");
41	});
42
43
44	////////////////////////////////////////////////////
45	// 04. Body overlay Js
46	$(".body-overlay").on("click", function () {
47		$(".offcanvas__area").removeClass("opened");
48		$(".body-overlay").removeClass("opened");
49	});
50
51
52	////////////////////////////////////////////////////
53	// 05. Search Js
54	$(".search-toggle").on("click", function () {
55		$(".search__area").addClass("opened");
56	});
57	$(".search-close-btn").on("click", function () {
58		$(".search__area").removeClass("opened");
59	});
60
61
62	////////////////////////////////////////////////////
63	// 06. Sticky Header Js
64	windowOn.on('scroll', function () {
65		var scroll = $(window).scrollTop();
66		if (scroll < 100) {
67			$("#header-sticky").removeClass("header__sticky");
68		} else {
69			$("#header-sticky").addClass("header__sticky");
70		}
71	});
72
73
74	////////////////////////////////////////////////////
75	// 07. Data CSS Js
76	$("[data-background").each(function () {
77		$(this).css("background-image", "url( " + $(this).attr("data-background") + "  )");
78	});
79	
80	$("[data-width]").each(function () {
81		$(this).css("width", $(this).attr("data-width"));
82	});
83
84	$("[data-bg-color]").each(function () {
85        $(this).css("background-color", $(this).attr("data-bg-color"));
86    });
87
88	////////////////////////////////////////////////////
89	// 07. Nice Select Js
90	$('.tp-blog-area select').niceSelect();
91
92	////////////////////////////////////////////////////
93	// 08. slider__active Slider Js
94	if (jQuery(".slider__active").length > 0) {
95		let sliderActive1 = ".slider__active";
96		let sliderInit1 = new Swiper(sliderActive1, {
97			// Optional parameters
98			slidesPerView: 1,
99			slidesPerColumn: 1,
100			paginationClickable: true,
101			loop: true,
102			effect: 'fade',
103
104			autoplay: {
105				delay: 5000,
106			},
107
108			// If we need pagination
109			pagination: {
110				el: ".ain-slider-paginations",
111				// dynamicBullets: true,
112				clickable: false,
113			},
114
115			// Navigation arrows
116			navigation: {
117				nextEl: ".slider-button-next",
118				prevEl: ".slider-button-prev",
119			},
120
121			a11y: false,
122		});
123
124		function animated_swiper(selector, init) {
125			let animated = function animated() {
126				$(selector + " [data-animation]").each(function () {
127					let anim = $(this).data("animation");
128					let delay = $(this).data("delay");
129					let duration = $(this).data("duration");
130
131					$(this)
132						.removeClass("anim" + anim)
133						.addClass(anim + " animated")
134						.css({
135							webkitAnimationDelay: delay,
136							animationDelay: delay,
137							webkitAnimationDuration: duration,
138							animationDuration: duration,
139						})
140						.one(
141							"webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",
142							function () {
143								$(this).removeClass(anim + " animated");
144							}
145						);
146				});
147			};
148			animated();
149			// Make animated when slide change
150			init.on("slideChange", function () {
151				$(sliderActive1 + " [data-animation]").removeClass("animated");
152			});
153			init.on("slideChange", animated);
154		}
155
156		animated_swiper(sliderActive1, sliderInit1);
157	}
158
159
160	var sliderr = new Swiper('.active', {
161		slidesPerView: 1,
162		spaceBetween: 30,
163		loop: true,
164		pagination: {
165			el: ".testimonial-pagination",
166			clickable: true,
167			renderBullet: function (index, className) {
168			  return '<span class="' + className + '">' + '<button>'+(index + 1)+'</button>' + "</span>";
169			},
170		},
171		breakpoints: {
172			'1200': {
173				slidesPerView: 3,
174			},
175			'992': {
176				slidesPerView: 2,
177			},
178			'768': {
179				slidesPerView: 2,
180			},
181			'576': {
182				slidesPerView: 1,
183			},
184			'0': {
185				slidesPerView: 1,
186			},
187		},
188	});
189
190	///////////////////////////////////////////////////
191	// 13. Masonary Js
192	$(".testimonial__active").owlCarousel({
193		//add owl carousel in activation class
194		loop: true,
195		margin: 30,
196		items: 4,
197		navText: ['<button class="nav-left"><i class="far fa-angle-left"></i></button>', '<button class="nav-right"><i class="far fa-angle-right"></i></button>'],
198		nav: false,
199		dots: true,
200		slideTransition: 'fadeOutLeft',
201		smartSpeed: 300,
202		responsive: {
203			0: {
204				items: 1
205			},
206			767: {
207				items: 2
208			},
209			992: {
210				items: 3
211			},
212			1200: {
213				items: 3
214			}
215		}
216	});
217
218
219	// course slider
220	var swiper = new Swiper('.course__slider', {
221		spaceBetween: 30,
222		slidesPerView: 2,
223		breakpoints: {  
224			'768': {
225				slidesPerView: 2,
226			},
227			'576': {
228				slidesPerView: 1,
229			},
230			'0': {
231				slidesPerView: 1,
232			},
233		},
234		pagination: {
235			el: '.swiper-pagination',
236			clickable: true,
237		},
238	});
239
240	var postboxSlider = new Swiper('.postbox__slider', {
241		slidesPerView: 1,
242        spaceBetween: 0,
243		loop: true,
244		autoplay: {
245		  delay: 3000,
246		},
247		// Navigation arrows
248		navigation: {
249			nextEl: ".postbox-slider-button-next",
250			prevEl: ".postbox-slider-button-prev",
251		},
252		breakpoints: {  
253			'1200': {
254				slidesPerView: 1,
255			},
256			'992': {
257				slidesPerView: 1,
258			},
259			'768': {
260				slidesPerView: 1,
261			},
262			'576': {
263				slidesPerView: 1,
264			},
265			'0': {
266				slidesPerView: 1,
267			},
268		},
269	});
270
271	////////////////////////////////////////////////////
272	// 13. Masonary Js
273	$('.grid').imagesLoaded(function () {
274		// init Isotope
275		var $grid = $('.grid').isotope({
276			itemSelector: '.grid-item',
277			percentPosition: true,
278			masonry: {
279				// use outer width of grid-sizer for columnWidth
280				columnWidth: 1,
281			}
282		});
283
284
285		// filter items on button click
286		$('.masonary-menu').on('click', 'button', function () {
287			var filterValue = $(this).attr('data-filter');
288			$grid.isotope({ filter: filterValue });
289		});
290
291		//for menu active class
292		$('.masonary-menu button').on('click', function (event) {
293			$(this).siblings('.active').removeClass('active');
294			$(this).addClass('active');
295			event.preventDefault();
296		});
297
298	});
299
300	/* magnificPopup img view */
301	$('.popup-image').magnificPopup({
302		type: 'image',
303		gallery: {
304			enabled: true
305		}
306	});
307
308	/* magnificPopup video view */
309	$(".popup-video").magnificPopup({
310		type: "iframe",
311	});
312
313	////////////////////////////////////////////////////
314	// 14. Wow Js
315	new WOW().init();
316
317	////////////////////////////////////////////////////
318	// 16. Cart Quantity Js
319	$('.cart-minus').click(function () {
320		var $input = $(this).parent().find('input');
321		var count = parseInt($input.val()) - 1;
322		count = count < 1 ? 1 : count;
323		$input.val(count);
324		$input.change();
325		return false;
326	});
327	$('.cart-plus').click(function () {
328		var $input = $(this).parent().find('input');
329		$input.val(parseInt($input.val()) + 1);
330		$input.change();
331		return false;
332	});
333
334	$(".cart-plus-minus").append('<div class="dec qtybutton">-</div><div class="inc qtybutton">+</div>');
335	$(".qtybutton").on("click", function () {
336		var $button = $(this);
337		var oldValue = $button.parent().find("input").val();
338		if ($button.text() == "+") {
339			var newVal = parseFloat(oldValue) + 1;
340		} else {
341			// Don't allow decrementing below zero
342			if (oldValue > 0) {
343				var newVal = parseFloat(oldValue) - 1;
344			} else {
345				newVal = 0;
346			}
347		}
348		$button.parent().find("input").val(newVal);
349	});
350
351	////////////////////////////////////////////////////
352	// 17. Show Login Toggle Js
353	$('#showlogin').on('click', function () {
354		$('#checkout-login').slideToggle(900);
355	});
356
357	////////////////////////////////////////////////////
358	// 18. Show Coupon Toggle Js
359	$('#showcoupon').on('click', function () {
360		$('#checkout_coupon').slideToggle(900);
361	});
362
363	////////////////////////////////////////////////////
364	// 19. Create An Account Toggle Js
365	$('#cbox').on('click', function () {
366		$('#cbox_info').slideToggle(900);
367	});
368
369	////////////////////////////////////////////////////
370	// 20. Shipping Box Toggle Js
371	$('#ship-box').on('click', function () {
372		$('#ship-box-info').slideToggle(1000);
373	});
374
375	////////////////////////////////////////////////////
376	// 21. Counter Js
377	$('.counter').counterUp({
378		delay: 10,
379		time: 1000
380	});
381
382	////////////////////////////////////////////////////
383	// 22. Parallax Js
384	if ($('.scene').length > 0) {
385		$('.scene').parallax({
386			scalarX: 10.0,
387			scalarY: 15.0,
388		});
389	};
390
391	////////////////////////////////////////////////////
392	// 23. InHover Active Js
393	$('.hover__active').on('mouseenter', function () {
394		$(this).addClass('active').parent().siblings().find('.hover__active').removeClass('active');
395	});
396
397
398})(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.