PageSourceSearch

https://www.totalpackservice.com/wp-content/themes/stillness-pro/js/custom.js?ver=7.0.6

js totalpackservice.com collected 2026-10-04 04:58:28 UTC 12,260 bytes, 546 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// Testimonials
223jQuery(document).ready(function(){
224	var owl = jQuery('.clienttestiminials');
225  	owl.owlCarousel({
226  		items: 3,
227		margin: 30,
228		autoplay: true,
229		loop: true,
230		nav: true,
231		dots: false,
232		autoplayTimeout: 8000,
233		autoplayHoverPause: true,
234		mouseDrag: true,
235        touchDrag: true,
236		autoHeight: true,
237		responsive:{
238			0: {
239				items: 1,
240			},
241			768: {
242				items: 2,
243				nav: false,
244			},
245			991: {
246				items: 3,
247			},
248		}
249	})
250});
251
252// Testimonials sidebar rotator
253jQuery(document).ready(function(){
254	var owl1 = jQuery('.quotes');
255  	owl1.owlCarousel({
256		items: 1,
257		nav: true,
258		dots: false,
259		loop: true,
260		autoplay: true,
261		autoplayTimeout: 8000,
262		autoplayHoverPause: true,
263		mouseDrag: true,
264        touchDrag: true
265	})
266});
267
268// Client Logo Rotator
269jQuery(document).ready(function(){
270	var owl2 = jQuery('.partners');
271  	owl2.owlCarousel({
272		items: 6,
273		margin: 30,
274		dots: false,
275		nav: true,
276		loop: true,
277		mouseDrag: true,
278        touchDrag: false,
279		autoplay: true,
280		autoplayTimeout: 5000,
281		autoplayHoverPause: true,
282		responsive:{
283			0: {
284				items: 1,
285				nav: false,
286				mouseDrag: true,
287            	touchDrag: true
288			},
289			768: {
290				items: 4,
291				mouseDrag: true,
292            	touchDrag: true
293			},
294			991: {
295				items: 6,
296			},
297		}		
298	})
299});
300
301//Image Carousel / PORTFOLIO GALLERY
302jQuery(document).ready(function(){
303	var owl3 = jQuery('#image-slider');
304  	owl3.owlCarousel({
305  		items: 1,
306		navigation : true, // Show next and prev buttons
307		slideSpeed : 300,
308		paginationSpeed : 400,
309		singleItem:true
310	})
311});
312
313// Extra Sliders
314//Gallery Rotator
315jQuery(document).ready(function(){
316	var owl4 = jQuery('.gal-rotator');
317  	owl4.owlCarousel({
318		margin: 25,
319		center: true,
320		dots: false,
321		loop: true,
322		mouseDrag: true,
323        touchDrag: false,
324		autoplay: true,
325		autoplayTimeout: 5000,
326		autoplayHoverPause: true,
327		responsive:{
328			0: {
329				items: 1,
330				nav: true,
331				mouseDrag: true,
332            	touchDrag: true
333			},
334			768: {
335				items: 2,
336				nav: true,
337				mouseDrag: true,
338            	touchDrag: true
339			},
340			991: {
341				items: 2,
342				nav: true
343			},
344		}		
345	})
346});
347
348// Team Member Rotator
349jQuery(document).ready(function(){
350	var owl5 = jQuery('.team-rotator');
351  	owl5.owlCarousel({
352		margin: 20,
353		dots: false,
354		nav: false,
355		loop: true,
356		autoplay: true,
357		mouseDrag: true,
358        touchDrag: false,
359		autoplayTimeout: 8000,
360		autoplayHoverPause: true,
361		responsive:{
362			0: {
363				items: 1,
364				mouseDrag: true,
365            	touchDrag: true,
366				nav: true
367			},
368			768: {
369				items: 3,
370				mouseDrag: true,
371            	touchDrag: true,
372				nav: true
373			},
374			991: {
375				items: 4,
376			},
377		}		
378	})
379});
380
381// Latest News
382jQuery(document).ready(function(){
383	var owl6 = jQuery('.latestpost');
384  	owl6.owlCarousel({
385		margin: 30,
386		dots: false,		
387		loop: true,
388		mouseDrag: true,
389        touchDrag: false,
390		autoplay: true,
391		autoplayTimeout: 5000,
392		autoplayHoverPause: true,
393		responsive:{
394			0: {
395				items: 1,
396				nav: false,
397				mouseDrag: true,
398            	touchDrag: true
399			},
400			768: {
401				items: 3,
402				nav: false,
403				mouseDrag: true,
404        		touchDrag: true,
405			},
406			991: {
407				items: 3,
408				nav: false,
409				mouseDrag: true,
410        		touchDrag: true,
411			},
412		}		
413	})
414});
415
416//Portfolio Rotator
417jQuery(document).ready(function(){
418	var owl7 = jQuery('.portf-rotator');
419  	owl7.owlCarousel({
420		margin: 0,
421		center: true,
422		dots: false,
423		loop: true,
424		mouseDrag: true,
425        touchDrag: false,
426		autoplay: true,
427		autoplayTimeout: 5000,
428		autoplayHoverPause: true,
429		responsive:{
430			0: {
431				items: 1,
432				mouseDrag: true,
433            	touchDrag: true,
434				nav: true
435			},
436			768: {
437				items: 2,
438				mouseDrag: false,
439            	touchDrag: true,
440				nav: true
441			},
442			991: {
443				items: 3,
444				nav: true
445			},
446		}		
447	})
448});
449
450// Classes Rotator
451jQuery(document).ready(function(){
452	var owl8 = jQuery('.classes-rotator');
453  	owl8.owlCarousel({
454		margin: 30,
455		center: true,
456		dots: false,
457		loop: true,
458		mouseDrag: true,
459        touchDrag: false,
460		autoplay: true,
461		autoplayTimeout: 5000,
462		autoplayHoverPause: true,
463		responsive:{
464			0: {
465				items: 1,
466				mouseDrag: true,
467            	touchDrag: true,
468				nav: true
469			},
470			768: {
471				items: 3,
472				mouseDrag: false,
473            	touchDrag: true,
474				nav: true
475			},
476			991: {
477				items: 3,
478				nav: true
479			},
480		}		
481	})
482});
483
484// Event Rotator
485jQuery(document).ready(function(){
486	var owl9 = jQuery('.event-rotator');
487  	owl9.owlCarousel({
488		margin: 30,
489		center: true,
490		dots: false,
491		loop: true,
492		mouseDrag: true,
493        touchDrag: false,
494		autoplay: true,
495		autoplayTimeout: 5000,
496		autoplayHoverPause: true,
497		responsive:{
498			0: {
499				items: 1,
500				mouseDrag: true,
501            	touchDrag: true,
502				nav: true
503			},
504			768: {
505				items: 3,
506				mouseDrag: false,
507            	touchDrag: true,
508				nav: true
509			},
510			991: {
511				items: 3,
512				nav: true
513			},
514		}		
515	})
516});
517
518// Add class to footer menu
519jQuery( document ).ready(function() {
520    jQuery('#footer-wrapper .widget_nav_menu ul').addClass('footer-nav');
521});
522
523jQuery(window).scroll(function() {    
524    var scroll = jQuery(window).scrollTop();
525
526    if (scroll >= 300) {
527        jQuery(".sticky-header").addClass("show");
528    } else {
529        jQuery(".sticky-header").removeClass("show");
530    }
531});
532jQuery( document ).ready(function() {
533	window.onorientationchange = function() { 
534		window.location.reload();
535	};
536});
537
538// Masonry Gallery
539jQuery(document).ready(function() {
540	// init Masonry
541	var $grid = jQuery(".grid").masonry({
542		itemSelector: ".grid-item",
543		percentPosition: true,
544		columnWidth: ".grid-sizer"
545	});
546});

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.