PageSourceSearch

https://educourse.id/static/frontend-full-learnup/assets/js/custom.js

js educourse.id collected 2026-09-24 12:52:00 UTC 13,669 bytes, 434 lines download raw bytes

1$(function() {
2    "use strict";
3
4	//Loader	
5	$(function preloaderLoad() {
6        if($('.preloader').length){
7            $('.preloader').delay(200).fadeOut(300);
8        }
9        $(".preloader_disabler").on('click', function() {
10            $("#preloader").hide();
11        });
12    });
13	
14	// Count
15	$(window).on('load', function() {
16		$('.bc_sec_last li h4').counterUp({
17			delay: 100,
18			time: 800
19		});
20	});
21	
22	// Script Navigation
23	! function(n, e, i, a) {
24		n.navigation = function(t, s) {
25			var o = {
26					responsive: !0,
27					mobileBreakpoint:992,
28					showDuration: 300,
29					hideDuration: 300,
30					showDelayDuration: 0,
31					hideDelayDuration: 0,
32					submenuTrigger: "hover",
33					effect: "fade",
34					submenuIndicator: !0,
35					hideSubWhenGoOut: !0,
36					visibleSubmenusOnMobile: !1,
37					fixed: !1,
38					overlay: !0,
39					overlayColor: "rgba(0, 0, 0, 0.5)",
40					hidden: !1,
41					offCanvasSide: "left",
42					onInit: function() {},
43					onShowOffCanvas: function() {},
44					onHideOffCanvas: function() {}
45				},
46				u = this,
47				r = Number.MAX_VALUE,
48				d = 1,
49				f = "click.nav touchstart.nav",
50				l = "mouseenter.nav",
51				c = "mouseleave.nav";
52			u.settings = {};
53			var t = (n(t), t);
54			n(t).find(".nav-menus-wrapper").prepend("<span class='nav-menus-wrapper-close-button'>✕</span>"), n(t).find(".nav-search").length > 0 && n(t).find(".nav-search").find("form").prepend("<span class='nav-search-close-button'>✕</span>"), u.init = function() {
55				u.settings = n.extend({}, o, s), "right" == u.settings.offCanvasSide && n(t).find(".nav-menus-wrapper").addClass("nav-menus-wrapper-right"), u.settings.hidden && (n(t).addClass("navigation-hidden"), u.settings.mobileBreakpoint = 99999), v(), u.settings.fixed && n(t).addClass("navigation-fixed"), n(t).find(".nav-toggle").on("click touchstart", function(n) {
56					n.stopPropagation(), n.preventDefault(), u.showOffcanvas(), s !== a && u.callback("onShowOffCanvas")
57				}), n(t).find(".nav-menus-wrapper-close-button").on("click touchstart", function() {
58					u.hideOffcanvas(), s !== a && u.callback("onHideOffCanvas")
59				}), n(t).find(".nav-search-button").on("click touchstart", function(n) {
60					n.stopPropagation(), n.preventDefault(), u.toggleSearch()
61				}), n(t).find(".nav-search-close-button").on("click touchstart", function() {
62					u.toggleSearch()
63				}), n(t).find(".megamenu-tabs").length > 0 && y(), n(e).resize(function() {
64					m(), C()
65				}), m(), s !== a && u.callback("onInit")
66			};
67			var v = function() {
68				n(t).find("li").each(function() {
69					n(this).children(".nav-dropdown,.megamenu-panel").length > 0 && (n(this).children(".nav-dropdown,.megamenu-panel").addClass("nav-submenu"), u.settings.submenuIndicator && n(this).children("a").append("<span class='submenu-indicator'><span class='submenu-indicator-chevron'></span></span>"))
70				})
71			};
72			u.showSubmenu = function(e, i) {
73				g() > u.settings.mobileBreakpoint && n(t).find(".nav-search").find("form").slideUp(), "fade" == i ? n(e).children(".nav-submenu").stop(!0, !0).delay(u.settings.showDelayDuration).fadeIn(u.settings.showDuration) : n(e).children(".nav-submenu").stop(!0, !0).delay(u.settings.showDelayDuration).slideDown(u.settings.showDuration), n(e).addClass("nav-submenu-open")
74			}, u.hideSubmenu = function(e, i) {
75				"fade" == i ? n(e).find(".nav-submenu").stop(!0, !0).delay(u.settings.hideDelayDuration).fadeOut(u.settings.hideDuration) : n(e).find(".nav-submenu").stop(!0, !0).delay(u.settings.hideDelayDuration).slideUp(u.settings.hideDuration), n(e).removeClass("nav-submenu-open").find(".nav-submenu-open").removeClass("nav-submenu-open")
76			};
77			var h = function() {
78					n("body").addClass("no-scroll"), u.settings.overlay && (n(t).append("<div class='nav-overlay-panel'></div>"), n(t).find(".nav-overlay-panel").css("background-color", u.settings.overlayColor).fadeIn(300).on("click touchstart", function(n) {
79						u.hideOffcanvas()
80					}))
81				},
82				p = function() {
83					n("body").removeClass("no-scroll"), u.settings.overlay && n(t).find(".nav-overlay-panel").fadeOut(400, function() {
84						n(this).remove()
85					})
86				};
87			u.showOffcanvas = function() {
88				h(), "left" == u.settings.offCanvasSide ? n(t).find(".nav-menus-wrapper").css("transition-property", "left").addClass("nav-menus-wrapper-open") : n(t).find(".nav-menus-wrapper").css("transition-property", "right").addClass("nav-menus-wrapper-open")
89			}, u.hideOffcanvas = function() {
90				n(t).find(".nav-menus-wrapper").removeClass("nav-menus-wrapper-open").on("webkitTransitionEnd moztransitionend transitionend oTransitionEnd", function() {
91					n(t).find(".nav-menus-wrapper").css("transition-property", "none").off()
92				}), p()
93			}, u.toggleOffcanvas = function() {
94				g() <= u.settings.mobileBreakpoint && (n(t).find(".nav-menus-wrapper").hasClass("nav-menus-wrapper-open") ? (u.hideOffcanvas(), s !== a && u.callback("onHideOffCanvas")) : (u.showOffcanvas(), s !== a && u.callback("onShowOffCanvas")))
95			}, u.toggleSearch = function() {
96				"none" == n(t).find(".nav-search").find("form").css("display") ? (n(t).find(".nav-search").find("form").slideDown(), n(t).find(".nav-submenu").fadeOut(200)) : n(t).find(".nav-search").find("form").slideUp()
97			};
98			var m = function() {
99					u.settings.responsive ? (g() <= u.settings.mobileBreakpoint && r > u.settings.mobileBreakpoint && (n(t).addClass("navigation-portrait").removeClass("navigation-landscape"), D()), g() > u.settings.mobileBreakpoint && d <= u.settings.mobileBreakpoint && (n(t).addClass("navigation-landscape").removeClass("navigation-portrait"), k(), p(), u.hideOffcanvas()), r = g(), d = g()) : k()
100				},
101				b = function() {
102					n("body").on("click.body touchstart.body", function(e) {
103						0 === n(e.target).closest(".navigation").length && (n(t).find(".nav-submenu").fadeOut(), n(t).find(".nav-submenu-open").removeClass("nav-submenu-open"), n(t).find(".nav-search").find("form").slideUp())
104					})
105				},
106				g = function() {
107					return e.innerWidth || i.documentElement.clientWidth || i.body.clientWidth
108				},
109				w = function() {
110					n(t).find(".nav-menu").find("li, a").off(f).off(l).off(c)
111				},
112				C = function() {
113					if (g() > u.settings.mobileBreakpoint) {
114						var e = n(t).outerWidth(!0);
115						n(t).find(".nav-menu").children("li").children(".nav-submenu").each(function() {
116							n(this).parent().position().left + n(this).outerWidth() > e ? n(this).css("right", 0) : n(this).css("right", "auto")
117						})
118					}
119				},
120				y = function() {
121					function e(e) {
122						var i = n(e).children(".megamenu-tabs-nav").children("li"),
123							a = n(e).children(".megamenu-tabs-pane");
124						n(i).on("click.tabs touchstart.tabs", function(e) {
125							e.stopPropagation(), e.preventDefault(), n(i).removeClass("active"), n(this).addClass("active"), n(a).hide(0).removeClass("active"), n(a[n(this).index()]).show(0).addClass("active")
126						})
127					}
128					if (n(t).find(".megamenu-tabs").length > 0)
129						for (var i = n(t).find(".megamenu-tabs"), a = 0; a < i.length; a++) e(i[a])
130				},
131				k = function() {
132					w(), n(t).find(".nav-submenu").hide(0), navigator.userAgent.match(/Mobi/i) || navigator.maxTouchPoints > 0 || "click" == u.settings.submenuTrigger ? n(t).find(".nav-menu, .nav-dropdown").children("li").children("a").on(f, function(i) {
133						if (u.hideSubmenu(n(this).parent("li").siblings("li"), u.settings.effect), n(this).closest(".nav-menu").siblings(".nav-menu").find(".nav-submenu").fadeOut(u.settings.hideDuration), n(this).siblings(".nav-submenu").length > 0) {
134							if (i.stopPropagation(), i.preventDefault(), "none" == n(this).siblings(".nav-submenu").css("display")) return u.showSubmenu(n(this).parent("li"), u.settings.effect), C(), !1;
135							if (u.hideSubmenu(n(this).parent("li"), u.settings.effect), "_blank" == n(this).attr("target") || "blank" == n(this).attr("target")) e.open(n(this).attr("href"));
136							else {
137								if ("#" == n(this).attr("href") || "" == n(this).attr("href")) return !1;
138								e.location.href = n(this).attr("href")
139							}
140						}
141					}) : n(t).find(".nav-menu").find("li").on(l, function() {
142						u.showSubmenu(this, u.settings.effect), C()
143					}).on(c, function() {
144						u.hideSubmenu(this, u.settings.effect)
145					}), u.settings.hideSubWhenGoOut && b()
146				},
147				D = function() {
148					w(), n(t).find(".nav-submenu").hide(0), u.settings.visibleSubmenusOnMobile ? n(t).find(".nav-submenu").show(0) : (n(t).find(".nav-submenu").hide(0), n(t).find(".submenu-indicator").removeClass("submenu-indicator-up"), u.settings.submenuIndicator ? n(t).find(".submenu-indicator").on(f, function(e) {
149						return e.stopPropagation(), e.preventDefault(), u.hideSubmenu(n(this).parent("a").parent("li").siblings("li"), "slide"), u.hideSubmenu(n(this).closest(".nav-menu").siblings(".nav-menu").children("li"), "slide"), "none" == n(this).parent("a").siblings(".nav-submenu").css("display") ? (n(this).addClass("submenu-indicator-up"), n(this).parent("a").parent("li").siblings("li").find(".submenu-indicator").removeClass("submenu-indicator-up"), n(this).closest(".nav-menu").siblings(".nav-menu").find(".submenu-indicator").removeClass("submenu-indicator-up"), u.showSubmenu(n(this).parent("a").parent("li"), "slide"), !1) : (n(this).parent("a").parent("li").find(".submenu-indicator").removeClass("submenu-indicator-up"), void u.hideSubmenu(n(this).parent("a").parent("li"), "slide"))
150					}) : k())
151				};
152			u.callback = function(n) {
153				s[n] !== a && s[n].call(t)
154			}, u.init()
155		}, n.fn.navigation = function(e) {
156			return this.each(function() {
157				if (a === n(this).data("navigation")) {
158					var i = new n.navigation(this, e);
159					n(this).data("navigation", i)
160				}
161			})
162		}
163	}
164	(jQuery, window, document), $(document).ready(function() {
165		$("#navigation").navigation()
166	});	
167	
168	// Tooltip
169	$('[data-toggle="tooltip"]').tooltip();
170	
171	// Bottom To Top Scroll Script
172	$(window).on('scroll', function() {
173		var height = $(window).scrollTop();
174		if (height > 100) {
175			$('#back2Top').fadeIn();
176		} else {
177			$('#back2Top').fadeOut();
178		}
179	});
180	
181	$("#back2Top").on('click', function(event) {
182		event.preventDefault();
183		$("html, body").animate({ scrollTop: 0 }, "slow");
184		return false;
185	});
186	
187	
188	// Script For Fix Header on Scroll
189	$(window).on('scroll', function() {    
190		var scroll = $(window).scrollTop();
191
192		if (scroll >= 50) {
193			$(".header").addClass("header-fixed");
194		} else {
195			$(".header").removeClass("header-fixed");
196		}
197	});
198	
199	// Brand Slide
200	// smart_textimonials_style
201	$('#brand-slide').slick({
202	  slidesToShow:5,
203	  arrows: false,
204	  autoplay:true,
205	  dots: false,
206	  responsive: [
207		{
208		  breakpoint:1024,
209		  settings: {
210			arrows: false,
211			slidesToShow:4
212		  }
213		},
214		{
215		  breakpoint: 768,
216		  settings: {
217			arrows: false,
218			slidesToShow:3
219		  }
220		},
221		{
222		  breakpoint: 480,
223		  settings: {
224			arrows: false,
225			slidesToShow:2
226		  }
227		}
228	  ]
229	});
230
231	
232	// smart_textimonials_style
233	$('#testimonials_style').slick({
234	  slidesToShow:1,
235	  arrows: true,
236	  autoplay:true,
237	  dots: false,
238	  responsive: [
239		{
240		  breakpoint: 768,
241		  settings: {
242			arrows: true,
243			slidesToShow:1
244		  }
245		},
246		{
247		  breakpoint: 480,
248		  settings: {
249			arrows: true,
250			slidesToShow:1
251		  }
252		}
253	  ]
254	});
255	
256	// smart_textimonials_style
257	$('#four_slide').slick({
258	  slidesToShow:4,
259	  arrows: true,
260	  autoplay:true,
261	  dots: false,
262	  responsive: [
263		{
264		  breakpoint:1199,
265		  settings: {
266			arrows: true,
267			slidesToShow:3
268		  }
269		},
270		{
271		  breakpoint: 768,
272		  settings: {
273			arrows: true,
274			slidesToShow:2
275		  }
276		},
277		{
278		  breakpoint: 480,
279		  settings: {
280			arrows: true,
281			slidesToShow:1
282		  }
283		}
284	  ]
285	});
286	
287	// smart_textimonials_style
288	$('#three_slide').slick({
289	  slidesToShow:3,
290	  arrows:true,
291	  autoplay:true,
292	  dots:true,
293	  responsive: [
294		{
295		  breakpoint: 800,
296		  settings: {
297			arrows: false,
298			slidesToShow:2
299		  }
300		},
301		{
302		  breakpoint: 480,
303		  settings: {
304			arrows: false,
305			slidesToShow:1
306		  }
307		}
308	  ]
309	});
310	
311	// Slide For No Arrow Four
312	$('.four_slide').slick({
313	  slidesToShow:4,
314	  arrows: true,
315	  autoplay:true,
316	  dots: false,
317	  responsive: [
318		{
319		  breakpoint:1199,
320		  settings: {
321			arrows: true,
322			slidesToShow:3
323		  }
324		},
325		{
326		  breakpoint: 768,
327		  settings: {
328			arrows: true,
329			slidesToShow:2
330		  }
331		},
332		{
333		  breakpoint: 480,
334		  settings: {
335			arrows: true,
336			slidesToShow:1
337		  }
338		}
339	  ]
340	});
341	
342	// Slide For No Arrow Three
343	$('.three_slide').slick({
344	  slidesToShow:3,
345	  arrows:true,
346	  autoplay:true,
347	  dots:false,
348	  responsive: [
349		{
350		  breakpoint: 800,
351		  settings: {
352			arrows: false,
353			slidesToShow:2
354		  }
355		},
356		{
357		  breakpoint: 480,
358		  settings: {
359			arrows: false,
360			slidesToShow:1
361		  }
362		}
363	  ]
364	});
365	
366	// Slide For dots Four
367	$('.four_slide-dots').slick({
368	  slidesToShow:4,
369	  arrows: true,
370	  autoplay:true,
371	  dots: true,
372	  responsive: [
373		{
374		  breakpoint:1199,
375		  settings: {
376			arrows: true,
377			slidesToShow:3
378		  }
379		},
380		{
381		  breakpoint: 768,
382		  settings: {
383			arrows: true,
384			slidesToShow:2
385		  }
386		},
387		{
388		  breakpoint: 480,
389		  settings: {
390			arrows: true,
391			slidesToShow:1
392		  }
393		}
394	  ]
395	});
396	
397	// Slide For dots Three
398	$('.three_slide-dots').slick({
399	  slidesToShow:3,
400	  arrows:true,
401	  autoplay:true,
402	  dots:true,
403	  responsive: [
404		{
405		  breakpoint:800,
406		  settings: {
407			arrows: false,
408			slidesToShow:2
409		  }
410		},
411		{
412		  breakpoint: 480,
413		  settings: {
414			arrows: false,
415			slidesToShow:1
416		  }
417		}
418	  ]
419	});
420	
421	
422	// Select Job category
423	$('#c-category').select2({
424		placeholder: "Choose Category",
425		allowClear: true
426	});
427	
428	// country
429	$('#country').select2({
430		placeholder: "Choose Country",
431		allowClear: true
432	});
433	
434});

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.