PageSourceSearch

https://vjeronauka.net/wp-content/themes/blessed-pro/js/custom.js?ver=7.1.2

js vjeronauka.net collected 2026-09-24 20:54:18 UTC 12,156 bytes, 544 lines download raw bytes

1jQuery(document).ready( function(){
2	// accordion
3    jQuery('.accordion-box .acc-content').hide();
4    jQuery('.accordion-box h2:first').addClass('active').next().show();
5    jQuery('.accordion-box h2').click(function(){
6        if( jQuery(this).next().is(':hidden') ) {
7            jQuery('.accordion-box h2').removeClass('active').next().slideUp();
8            jQuery(this).toggleClass('active').next().slideDown();
9        }
10        return false; // Prevent the browser jump to the link anchor
11    });
12	
13	// Tabs
14	jQuery('ul.tabs > br').remove();
15	jQuery('.tabs-wrapper').append(jQuery('.tabs li div'));
16	jQuery('.tabs li:first a').addClass('defaulttab selected');
17	jQuery('.tabs a').click(function(){
18		switch_tabs(jQuery(this));
19	});
20	switch_tabs(jQuery('.defaulttab'));
21	function switch_tabs(obj) {
22		jQuery('.tab-content').hide();
23		jQuery('.tabs a').removeClass("selected");
24		var id = obj.attr("rel");
25		jQuery('#'+id).show();
26		obj.addClass("selected");
27	}
28});
29
30// Content Toggle
31jQuery(function () {
32	var Accordion = function (el, multiple) {
33		this.el = el || {};
34		this.multiple = multiple || false;
35
36		var links = this.el.find(".toggle-title");
37		links.on(
38			"click",
39			{
40				el: this.el,
41				multiple: this.multiple
42			},
43			this.dropdown
44		);
45	};
46
47	Accordion.prototype.dropdown = function (e) {
48		var $el = e.data.el;
49		($this = jQuery(this)), ($next = $this.next());
50
51		$next.slideToggle();
52		$this.parent().toggleClass("open");
53
54		if (!e.data.multiple) {
55			$el
56				.find(".toggle-content")
57				.not($next)
58				.slideUp()
59				.parent()
60				.removeClass("open");
61		}
62	};
63	var accordion = new Accordion(jQuery(".toggle-container"), false);
64});
65
66
67// NAVIGATION CALLBACK
68var ww = jQuery(window).width();
69jQuery(document).ready(function() { 
70	jQuery(".sitenav li a").each(function() {
71		if (jQuery(this).next().length > 0) {
72			jQuery(this).addClass("parent");
73		};
74	})
75	jQuery(".toggleMenu").click(function(e) { 
76		e.preventDefault();
77		jQuery(this).toggleClass("active");
78		jQuery(".sitenav").slideToggle('fast');
79	});
80	adjustMenu();
81})
82
83// navigation orientation resize callbak
84jQuery(window).bind('resize orientationchange', function() {
85	ww = jQuery(window).width();
86	adjustMenu();
87});
88
89var adjustMenu = function() {
90	if (ww < 991) {
91		jQuery(".toggleMenu").css("display", "block");
92		if (!jQuery(".toggleMenu").hasClass("active")) {
93			jQuery(".sitenav").hide();
94		} else {
95			jQuery(".sitenav").show();
96		}
97		jQuery(".sitenav li").unbind('mouseenter mouseleave');
98	} else {
99		jQuery(".toggleMenu").css("display", "none");
100		jQuery(".sitenav").show();
101		jQuery(".sitenav li").removeClass("hover");
102		jQuery(".sitenav li a").unbind('click');
103		jQuery(".sitenav li").unbind('mouseenter mouseleave').bind('mouseenter mouseleave', function() {
104			jQuery(this).toggleClass('hover');
105		});
106	}
107}
108
109jQuery(document).ready(function () {
110	jQuery(this).find('.sitenav li ul').parent().addClass('has-sub');
111	jQuery(this).find(".has-sub").prepend('<span class="submenu-button"></span>');
112	jQuery(this).find('.submenu-button').on('click', function() {
113	jQuery(this).toggleClass('submenu-opened');
114		if (jQuery(this).siblings('ul').hasClass('open')) {
115		 jQuery(this).siblings('ul').removeClass('open').slideToggle();
116		}
117		else {
118		 jQuery(this).siblings('ul').addClass('open').slideToggle();
119		}
120	});
121	if (jQuery( window ).width() > 990 ) {
122       jQuery(this).find('ul li ul').show();
123     }	
124     if (jQuery(window).width() <= 990 ) {
125       jQuery(this).find('ul li ul').hide();
126     }
127});
128
129// Toggle Topbar
130jQuery(document).ready(function() {
131	jQuery('.tp-head-toggle').click(function() {
132		jQuery('.top-header').slideToggle('slow');		
133	});	
134});
135
136
137// skill bar script
138jQuery(document).ready(function() {
139	jQuery('.skillbar').each(function(){
140		jQuery(this).find('.skillbar-bar').animate({
141			width:jQuery(this).attr('data-percent')
142		},6000);
143	});
144});
145
146jQuery(document).ready(function(){
147	// hide #back-top first
148	jQuery("#back-top").hide();	
149	// fade in #back-top
150	jQuery(function () {
151		jQuery(window).scroll(function () {
152			if (jQuery(this).scrollTop() > 50) {
153				jQuery('#back-top').fadeIn();
154			} else {
155				jQuery('#back-top').fadeOut();
156			}
157		});
158		// scroll body to 0px on click
159		jQuery('#back-top').click(function () {
160			jQuery('body,html').animate({
161				scrollTop: 00
162			}, 800);
163			return false;
164		});
165	});
166
167});
168
169//Counter jquery
170jQuery(document).ready(function(  ) {
171        jQuery('.counter').counterUp({
172            delay: 20,
173            time: 5000
174   });
175});
176
177// Remove empty p tag
178jQuery(document).ready( function() {
179  jQuery('p:empty').remove();
180});
181
182//Fancybox
183jQuery(document).ready(function(){
184	jQuery('.pop-gallery').fancybox({
185		loop : true,
186		protect: true,
187		thumbs : {
188			autoStart   : true,                  // Display thumbnails on opening
189			hideOnClose : true,                   // Hide thumbnail grid when closing animation starts
190			parentEl    : '.fancybox-container',  // Container is injected into this element
191			axis        : 'y'                     // Vertical (y) or horizontal (x) scrolling
192		},
193		transitionEffect : "zoom-in-out",
194		transitionDuration : 1000,
195	});
196	jQuery('.port-gallery').fancybox({
197		loop : true,
198		protect: true,
199		thumbs : {
200			autoStart   : true,                  // Display thumbnails on opening
201			hideOnClose : true,                   // Hide thumbnail grid when closing animation starts
202			parentEl    : '.fancybox-container',  // Container is injected into this element
203			axis        : 'y'                     // Vertical (y) or horizontal (x) scrolling
204		},
205		transitionEffect : "zoom-in-out",
206		transitionDuration : 1000,
207	});
208	jQuery('[data-fancybox="images"]').fancybox({
209		loop : true,
210		protect: true,
211		thumbs : {
212			autoStart   : true,                  // Display thumbnails on opening
213			hideOnClose : true,                   // Hide thumbnail grid when closing animation starts
214			parentEl    : '.fancybox-container',  // Container is injected into this element
215			axis        : 'y'                     // Vertical (y) or horizontal (x) scrolling
216		},
217		transitionEffect : "zoom-in-out",
218		transitionDuration : 1000,
219	});
220});
221
222// Special Menu Responsive Tab
223jQuery(document).ready(function() {
224	RESPONSIVEUI.responsiveTabs();
225})
226
227// Testimonials
228jQuery(document).ready(function(){
229	var owl = jQuery('.clienttestiminials');
230  	owl.owlCarousel({
231  		items: 2,
232		margin: 30,
233		autoplay: true,
234		loop: true,
235		nav: true,
236		dots: false,
237		autoplayTimeout: 8000,
238		autoplayHoverPause: true,
239		mouseDrag: true,
240        touchDrag: true,
241		autoHeight: true,
242		responsive:{
243			0: {
244				items: 1,
245				nav: false				
246			},
247			768: {
248				items: 1,
249				nav: true
250			},
251			991: {
252				items: 2,
253				nav: true
254			},
255		}
256	})
257});
258
259// Testimonials sidebar rotator
260jQuery(document).ready(function(){
261	var owl1 = jQuery('.quotes');
262  	owl1.owlCarousel({
263		items: 1,
264		nav: true,
265		dots: false,
266		loop: true,
267		autoplay: true,
268		autoplayTimeout: 8000,
269		autoplayHoverPause: true,
270		mouseDrag: true,
271        touchDrag: true
272	})
273});
274
275// Client Logo Rotator
276jQuery(document).ready(function(){
277	var owl2 = jQuery('.partners');
278  	owl2.owlCarousel({
279		items: 6,
280		margin: 30,
281		dots: false,
282		nav: true,
283		loop: true,
284		mouseDrag: true,
285        touchDrag: false,
286		autoplay: true,
287		autoplayTimeout: 5000,
288		autoplayHoverPause: true,
289		responsive:{
290			0: {
291				items: 1,
292				nav: false,
293				mouseDrag: true,
294            	touchDrag: true
295			},
296			768: {
297				items: 4,
298				nav: false,
299				mouseDrag: true,
300            	touchDrag: true
301			},
302			991: {
303				items: 5,
304				nav: false
305			},
306		}		
307	})
308});
309
310//Image Carousel / PORTFOLIO GALLERY
311jQuery(document).ready(function(){
312	var owl3 = jQuery('#image-slider');
313  	owl3.owlCarousel({
314  		items: 1,
315		navigation : true, // Show next and prev buttons
316		slideSpeed : 300,
317		paginationSpeed : 400,
318		singleItem:true
319	})
320});
321
322// Extra Sliders
323//Gallery Rotator
324jQuery(document).ready(function(){
325	var owl4 = jQuery('.gal-rotator');
326  	owl4.owlCarousel({
327		margin: 25,
328		center: true,
329		dots: false,
330		loop: true,
331		mouseDrag: true,
332        touchDrag: false,
333		autoplay: true,
334		autoplayTimeout: 5000,
335		autoplayHoverPause: true,
336		responsive:{
337			0: {
338				items: 1,
339				nav: true,
340				mouseDrag: true,
341            	touchDrag: true
342			},
343			768: {
344				items: 2,
345				nav: true,
346				mouseDrag: true,
347            	touchDrag: true
348			},
349			991: {
350				items: 2,
351				nav: true
352			},
353		}		
354	})
355});
356
357// Team Member Rotator
358jQuery(document).ready(function(){
359	var owl5 = jQuery('.team-rotator');
360  	owl5.owlCarousel({
361		margin: 30,
362		dots: false,
363		nav: false,
364		loop: true,
365		autoplay: true,
366		mouseDrag: true,
367        touchDrag: true,
368		autoplayTimeout: 8000,
369		autoplayHoverPause: true,
370		responsive:{
371			0: {
372				items: 1
373			},
374			768: {
375				items: 2
376			},
377			991: {
378				items: 3
379			},
380		}		
381	})
382});
383
384// Latest News
385jQuery(document).ready(function(){
386	var owl6 = jQuery('.latestpost');
387  	owl6.owlCarousel({
388		margin: 30,
389		dots: false,		
390		loop: true,
391		nav: false,
392		mouseDrag: true,
393        touchDrag: true,
394		autoplay: true,
395		autoplayTimeout: 5000,
396		autoplayHoverPause: true,
397		responsive:{
398			0: {
399				items: 1,
400				nav: true,
401			},
402			768: {
403				items: 2,
404				nav: true,
405			},
406			991: {
407				items: 3,
408				nav: false,
409			},
410		}		
411	})
412});
413
414//Portfolio Rotator
415jQuery(document).ready(function(){
416	var owl7 = jQuery('.portf-rotator');
417  	owl7.owlCarousel({
418		margin: 30,
419		center: true,
420		dots: false,
421		loop: true,
422		mouseDrag: true,
423        touchDrag: false,
424		autoplay: true,
425		autoplayTimeout: 5000,
426		autoplayHoverPause: true,
427		responsive:{
428			0: {
429				items: 1,
430				mouseDrag: true,
431            	touchDrag: true,
432				nav: true
433			},
434			768: {
435				items: 3,
436				mouseDrag: false,
437            	touchDrag: true,
438				nav: true
439			},
440			991: {
441				items: 3,
442				nav: true
443			},
444		}		
445	})
446});
447
448// Sermons Rotator
449jQuery(document).ready(function(){
450	var owl8 = jQuery('.sermons-rotator');
451  	owl8.owlCarousel({
452		margin: 30,
453		center: true,
454		dots: false,
455		loop: true,
456		mouseDrag: true,
457        touchDrag: false,
458		autoplay: true,
459		autoplayTimeout: 5000,
460		autoplayHoverPause: true,
461		responsive:{
462			0: {
463				items: 1,
464				mouseDrag: true,
465            	touchDrag: true,
466				nav: true
467			},
468			768: {
469				items: 3,
470				mouseDrag: false,
471            	touchDrag: true,
472				nav: true
473			},
474			991: {
475				items: 3,
476				nav: true
477			},
478		}		
479	})
480});
481
482// Events Rotator
483jQuery(document).ready(function(){
484	var owl9 = jQuery('.event-rotator');
485  	owl9.owlCarousel({
486		margin: 30,
487		center: true,
488		dots: false,
489		loop: true,
490		mouseDrag: true,
491        touchDrag: false,
492		autoplay: true,
493		autoplayTimeout: 5000,
494		autoplayHoverPause: true,
495		responsive:{
496			0: {
497				items: 1,
498				mouseDrag: true,
499            	touchDrag: true,
500				nav: true
501			},
502			768: {
503				items: 3,
504				mouseDrag: false,
505            	touchDrag: true,
506				nav: true
507			},
508			991: {
509				items: 3,
510				nav: true
511			},
512		}		
513	})
514});
515
516// Add class to footer menu
517jQuery( document ).ready(function() {
518    jQuery('#footer-wrapper .widget_nav_menu ul').addClass('footer-nav');
519});
520
521jQuery(window).scroll(function() {    
522    var scroll = jQuery(window).scrollTop();
523
524    if (scroll >= 300) {
525        jQuery(".sticky-header").addClass("show");
526    } else {
527        jQuery(".sticky-header").removeClass("show");
528    }
529});
530jQuery( document ).ready(function() {
531	window.onorientationchange = function() { 
532		window.location.reload();
533	};
534});
535
536// Masonry Gallery
537jQuery(document).ready(function() {
538	// init Masonry
539	var $grid = jQuery(".grid").masonry({
540		itemSelector: ".grid-item",
541		percentPosition: true,
542		columnWidth: ".grid-sizer"
543	});
544});

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.