PageSourceSearch

https://www.jorkprintmanagement.com/wp-content/themes/printify/ass…?ver=4afbfacb2c771776858c9ac1fefa6d41

js jorkprintmanagement.com collected 2026-10-07 02:57:33 UTC 24,801 bytes, 943 lines download raw bytes

1(function ($) {
2
3"use strict"; // Start of use strict
4
5function mobileNavToggle () {
6    if ($('#main-nav-bar .navbar-nav .submenu').length) {
7    	var subMenu = $('#main-nav-bar .navbar-nav .submenu');
8        subMenu.parent('li').children('a').append(function () {
9            return '<button class="sub-nav-toggler"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button>';
10        });
11        var subNavToggler = $('#main-nav-bar .navbar-nav .sub-nav-toggler');
12        subNavToggler.on('click', function () {
13            var Self = $(this);
14            Self.parent().parent().children('.submenu').slideToggle();
15            return false;
16        });
17
18    };
19}
20
21
22
23	
24if (jQuery(".banner-section").length > 0) {
25    var ms1 = new Swiper(".content-slider.swiper-container", {
26        preloadImages: false,
27        loop: true,
28        speed: 1400,
29        spaceBetween: 0,
30        effect: "slide",
31        autoplay: {
32            delay: 2500,
33            disableOnInteraction: false
34        },
35        pagination: {
36            el: '.swiper-pagination',
37          },
38    });
39    var ms2 = new Swiper(".image-slider.swiper-container", {
40        preloadImages: false,
41        loop: true,
42        speed: 1400,
43        spaceBetween: 0,
44        effect: "slide",
45    });
46    ms1.controller.control = ms2;
47    ms2.controller.control = ms1;
48}
49	
50
51	
52	//Fact Counter + Text Count
53	if($('.count-box').length){
54		$('.count-box').appear(function(){
55	
56			var $t = $(this),
57				n = $t.find(".count-text").attr("data-stop"),
58				r = parseInt($t.find(".count-text").attr("data-speed"), 10);
59				
60			if (!$t.hasClass("counted")) {
61				$t.addClass("counted");
62				$({
63					countNum: $t.find(".count-text").text()
64				}).animate({
65					countNum: n
66				}, {
67					duration: r,
68					easing: "linear",
69					step: function() {
70						$t.find(".count-text").text(Math.floor(this.countNum));
71					},
72					complete: function() {
73						$t.find(".count-text").text(this.countNum);
74					}
75				});
76			}
77			
78		},{accY: 0});
79	}
80
81function accrodion () {
82    if ($('.accrodion-grp').length) {
83        var accrodionGrp = $('.accrodion-grp');
84        accrodionGrp.each(function () {
85            var accrodionName = $(this).data('grp-name');
86            var Self = $(this);
87            var accordion = Self.find('.accrodion');
88            Self.addClass(accrodionName);
89            Self.find('.accrodion .accrodion-content').hide();
90            Self.find('.accrodion.active').find('.accrodion-content').show();
91            accordion.each(function() {
92                $(this).find('.accrodion-title').on('click', function () {
93                    if ($(this).parent().hasClass('active') === false ) {                   
94                        $('.accrodion-grp.'+accrodionName).find('.accrodion').removeClass('active');
95                        $('.accrodion-grp.'+accrodionName).find('.accrodion').find('.accrodion-content').slideUp();
96                        $(this).parent().addClass('active');                    
97                        $(this).parent().find('.accrodion-content').slideDown();        
98                    };
99                    
100
101                });
102            });
103        });
104        
105    };
106}
107
108function thmMailchimp() {
109    if ($('.mailchimp-form').length) {
110        $('.mailchimp-form').each(function() {
111            var mailChimpWrapper = $(this);
112            mailChimpWrapper.validate({ // initialize the plugin
113                rules: {
114                    email: {
115                        required: true,
116                        email: true
117                    }
118                },
119                submitHandler: function(form) {
120                    // sending value with ajax request
121                    $.post($(form).attr('action'), $(form).serialize(), function(response) {
122                        $(form).parent().find('.result').append(response);
123                        $(form).find('input[type="text"]').val('');
124                        $(form).find('input[type="email"]').val('');
125                        $(form).find('textarea').val('');
126                    });
127                    return false;
128                }
129            });
130        });
131    };
132}
133
134    if ($('.two-column-carousel').length) {
135        $('.two-column-carousel').owlCarousel({
136            loop: true,
137            margin: 50,
138            nav: false,
139            navText: [
140                '<i class="fa fa-angle-left"></i>',
141                '<i class="fa fa-angle-right"></i>'
142            ],            
143            dots: true,
144            autoWidth: false,
145            autoplay: true,
146            autoplayTimeout: 3000,
147            autoplayHoverPause: true,
148            responsive: {
149                0: {
150                    items: 1,
151                    autoWidth: false
152                },
153                480: {
154                    items: 1,
155                    autoWidth: false
156                },
157                600: {
158                    items: 1,
159                    autoWidth: false
160                },
161                992: {
162                    items: 2,
163                    autoWidth: false
164                }
165            }
166        });
167    };
168	
169	
170    if ($('.testi-carousel-two').length) {
171        $('.testi-carousel-two').owlCarousel({
172            loop: true,
173            margin: 50,
174            nav: false,
175            navText: [
176                '<i class="fa fa-angle-left"></i>',
177                '<i class="fa fa-angle-right"></i>'
178            ],            
179            dots: true,
180            autoWidth: false,
181            autoplay: true,
182            autoplayTimeout: 3000,
183            autoplayHoverPause: true,
184            responsive: {
185                0: {
186                    items: 1,
187                    autoWidth: false
188                },
189                480: {
190                    items: 1,
191                    autoWidth: false
192                },
193                600: {
194                    items: 1,
195                    autoWidth: false
196                },
197                992: {
198                    items: 2,
199                    autoWidth: false
200                }
201            }
202        });
203    }; 
204
205function thmOwlCarousel() {
206    if ($('.testi-carousel').length) {
207        $('.testi-carousel').owlCarousel({
208            loop: true,
209            margin: 0,
210            nav: false,
211            navText: [
212                '<i class="fa fa-angle-left"></i>',
213                '<i class="fa fa-angle-right"></i>'
214            ],            
215            dots: true,
216            autoWidth: false,
217            autoplay: true,
218            autoplayTimeout: 3000,
219            autoplayHoverPause: true,
220            responsive: {
221                0: {
222                    items: 1,
223                    autoWidth: false
224                },
225                480: {
226                    items: 1,
227                    autoWidth: false
228                },
229                600: {
230                    items: 1,
231                    autoWidth: false
232                },
233                1000: {
234                    items: 1,
235                    autoWidth: false
236                }
237            }
238        });
239    }; 
240	
241	
242    if ($('.banner-carousel-two').length) {
243        $('.banner-carousel-two').owlCarousel({
244            loop: true,
245            margin: 0,
246            nav: false,
247            navText: [
248                '<i class="fa fa-angle-left"></i>',
249                '<i class="fa fa-angle-right"></i>'
250            ],            
251            dots: true,
252            autoWidth: false,
253            autoplay: true,
254            autoplayTimeout: 3000,
255            autoplayHoverPause: true,
256            responsive: {
257                0: {
258                    items: 1
259                },
260                480: {
261                    items: 1
262                },
263                568: {
264                    items: 1
265                },
266                600: {
267                    items: 1
268                },
269                823: {
270                    items: 1
271                },
272                1000: {
273                    items: 1
274                }
275            }
276        });
277    };
278	
279	    if ($('.banner-carousel-three').length) {
280        $('.banner-carousel-three').owlCarousel({
281            loop: true,
282            margin: 0,
283            nav: false,
284            navText: [
285                '<i class="fa fa-angle-left"></i>',
286                '<i class="fa fa-angle-right"></i>'
287            ],            
288            dots: true,
289            autoWidth: false,
290            autoplay: true,
291            autoplayTimeout: 3000,
292            autoplayHoverPause: true,
293            responsive: {
294                0: {
295                    items: 1
296                },
297                480: {
298                    items: 1
299                },
300                568: {
301                    items: 1
302                },
303                600: {
304                    items: 1
305                },
306                823: {
307                    items: 1
308                },
309                1000: {
310                    items: 1
311                }
312            }
313        });
314    };
315	
316	
317    if ($('.team-carousel').length) {
318        $('.team-carousel').owlCarousel({
319            loop: true,
320            margin: 0,
321            nav: true,
322            navText: [
323                '<i class="fa fa-angle-left"></i>',
324                '<i class="fa fa-angle-right"></i>'
325            ],            
326            dots: false,
327            autoWidth: false,
328            autoplay: true,
329            autoplayTimeout: 3000,
330            autoplayHoverPause: true,
331            responsive: {
332                0: {
333                    items: 1,
334                    autoWidth: false
335                },
336                480: {
337                    items: 1,
338                    autoWidth: false
339                },
340                600: {
341                    items: 1,
342                    autoWidth: false
343                },
344                1000: {
345                    items: 1,
346                    autoWidth: false
347                }
348            }
349        });
350    }; 
351    if ($('.banner-carousel-two').length) {
352        $('.banner-carousel-two').owlCarousel({
353            loop: true,
354            margin: 0,
355            nav: false,
356            navText: [
357                '<i class="fa fa-angle-left"></i>',
358                '<i class="fa fa-angle-right"></i>'
359            ],            
360            dots: true,
361            autoWidth: false,
362            autoplay: true,
363            autoplayTimeout: 3000,
364            autoplayHoverPause: true,
365            responsive: {
366                0: {
367                    items: 1
368                },
369                480: {
370                    items: 1
371                },
372                568: {
373                    items: 1
374                },
375                600: {
376                    items: 1
377                },
378                823: {
379                    items: 1
380                },
381                1000: {
382                    items: 1
383                }
384            }
385        });
386    }; 
387    if ($('.we-believe-carousel').length) {
388        $('.we-believe-carousel').owlCarousel({
389            loop: true,
390            margin: 0,
391            nav: false,
392            navText: [
393                '<i class="fa fa-angle-left"></i>',
394                '<i class="fa fa-angle-right"></i>'
395            ],            
396            dots: true,
397            autoWidth: false,
398            autoplay: true,
399            autoplayTimeout: 3000,
400            autoplayHoverPause: true,
401            responsive: {
402                0: {
403                    items: 1
404                },
405                480: {
406                    items: 1
407                },
408                568: {
409                    items: 1
410                },
411                600: {
412                    items: 1
413                },
414                823: {
415                    items: 1
416                },
417                1000: {
418                    items: 1
419                }
420            }
421        });
422    }; 
423    if ($('.brand-carousel').length) {
424        $('.brand-carousel').owlCarousel({
425            loop: true,
426            margin: 90,
427            nav: false,
428            navText: [
429                '<i class="fa fa-angle-left"></i>',
430                '<i class="fa fa-angle-right"></i>'
431            ],            
432            dots: false,
433            autoWidth: false,
434            autoplay: true,
435            autoplayTimeout: 3000,
436            autoplayHoverPause: true,
437            responsive: {
438                0: {
439                    items: 1
440                },
441                480: {
442                    items: 2
443                },
444                568: {
445                    items: 3
446                },
447                600: {
448                    items: 4
449                },
450                823: {
451                    items: 4
452                },
453                1000: {
454                    items: 6
455                }
456            }
457        });
458    }; 
459	if ($('.brand-carousel-two').length) {
460        $('.brand-carousel-two').owlCarousel({
461            loop: true,
462            margin: 90,
463            nav: false,
464            navText: [
465                '<i class="fa fa-angle-left"></i>',
466                '<i class="fa fa-angle-right"></i>'
467            ],            
468            dots: false,
469            autoWidth: false,
470            autoplay: true,
471            autoplayTimeout: 3000,
472            autoplayHoverPause: true,
473            responsive: {
474                0: {
475                    items: 1
476                },
477                480: {
478                    items: 2
479                },
480                568: {
481                    items: 2
482                },
483                600: {
484                    items: 3
485                },
486                823: {
487                    items: 4
488                },
489                1000: {
490                    items: 4
491                }
492            }
493        });
494    }; 
495}
496	
497	
498	//Tabs Box
499	if($('.tabs-box').length){
500		$('.tabs-box .tab-buttons .tab-btn').on('click', function(e) {
501			e.preventDefault();
502			var target = $($(this).attr('data-tab'));
503			
504			if ($(target).is(':visible')){
505				return false;
506			}else{
507				target.parents('.tabs-box').find('.tab-buttons').find('.tab-btn').removeClass('active-btn');
508				$(this).addClass('active-btn');
509				target.parents('.tabs-box').find('.tabs-content').find('.tab').fadeOut(0);
510				target.parents('.tabs-box').find('.tabs-content').find('.tab').removeClass('active-tab');
511				$(target).fadeIn(300);
512				$(target).addClass('active-tab');
513			}
514		});
515	}
516
517
518function galleryMasonaryLayout() {
519    if ($('.masonary-layout').length) {
520        $('.masonary-layout').isotope({
521            layoutMode: 'masonry'
522        });
523    }
524
525    if ($('.post-filter').length) {
526    	var postFilterList = $('.post-filter li');
527        postFilterList.children('span').on('click', function() {
528            var Self = $(this);
529            var selector = Self.parent().attr('data-filter');
530            postFilterList.children('span').parent().removeClass('active');
531            Self.parent().addClass('active');
532
533
534            $('.filter-layout').isotope({
535                filter: selector,
536                animationOptions: {
537                    duration: 500,
538                    easing: 'linear',
539                    queue: false
540                }
541            });
542            return false;
543        });
544    }
545
546    if ($('.post-filter.has-dynamic-filter-counter').length) {
547        // var allItem = $('.single-filter-item').length;
548
549        var activeFilterItem = $('.post-filter.has-dynamic-filter-counter').find('li');
550
551        activeFilterItem.each(function() {
552            var filterElement = $(this).data('filter');
553            var count = $('.gallery-content').find(filterElement).length;
554            $(this).children('span').append('<span class="count"><b>' + count + '</b></span>');
555        });
556    };
557}
558	
559	//Sortable Masonary with Filters
560	function sortableMasonry() {
561		if ($('.sortable-masonry').length) {
562			var winDow = $(window);
563			// Needed variables
564			var $container = $('.sortable-masonry .items-container');
565			var $filter = $('.filter-btns');
566			$container.isotope({
567				filter: '.all',
568				animationOptions: {
569					duration: 500,
570					easing: 'linear'
571				}
572			});
573			// Isotope Filter 
574			$filter.find('li').on('click', function() {
575				var selector = $(this).attr('data-filter');
576				try {
577					$container.isotope({
578						filter: selector,
579						animationOptions: {
580							duration: 500,
581							easing: 'linear',
582							queue: false
583						}
584					});
585				} catch (err) {}
586				return false;
587			});
588			winDow.on('resize', function() {
589				var selector = $filter.find('li.active').attr('data-filter');
590				$container.isotope({
591					filter: selector,
592					animationOptions: {
593						duration: 500,
594						easing: 'linear',
595						queue: false
596					}
597				});
598				$container.isotope()
599			});
600			var filterItemA = $('.filter-btns li');
601			filterItemA.on('click', function() {
602				var $this = $(this);
603				if (!$this.hasClass('active')) {
604					filterItemA.removeClass('active');
605					$this.addClass('active');
606				}
607			});
608			$container.isotope("on", "layoutComplete", function(a, b) {
609                var a = b.length,
610                pcn = $(".filters .count");
611                pcn.html(a);                
612            }); 
613		}
614	}
615	sortableMasonry();	
616	
617
618
619//LightBox / Fancybox
620if($('.lightbox-image').length) {
621	$('.lightbox-image').fancybox({
622		openEffect  : 'fade',
623		closeEffect : 'fade',
624		helpers : {
625			media : {}
626		}
627	});
628}
629	
630
631
632
633function thmbxSlider() {
634    if ($('.feature-carousel-box').length) {
635        $('.feature-carousel-box').bxSlider({
636            mode: 'vertical',
637            auto: true,
638            autoControls: false,
639            controls: false,
640            pause: 3000,
641            slideMargin: 0
642        });
643    }
644}
645
646
647
648
649/*
650
651function thmLightBox() {
652    if ($('.img-popup').length) {
653        var groups = {};
654        var imgPop = $('.img-popup');
655        imgPop.each(function() {
656            var id = parseInt($(this).attr('data-group'), 10);
657
658            if (!groups[id]) {
659                groups[id] = [];
660            }
661
662            groups[id].push(this);
663        });
664
665
666        $.each(groups, function() {
667
668            $(this).magnificPopup({
669                type: 'image',
670                closeOnContentClick: true,
671                closeBtnInside: false,
672                gallery: { enabled: true }
673            });
674
675        });
676
677    };
678}
679
680*/
681
682function thmCounter() {
683    if ($('.counter').length) {
684        $('.counter').counterUp({
685            delay: 10,
686            time: 3000
687        });
688    };
689}
690
691function thmScrollAnim() {
692    if ($('.wow').length) {
693        var wow = new WOW({
694            mobile: false
695        });
696        wow.init();
697    };
698}
699
700function contactFormValidation() {
701    if ($('.contact-form').length) {
702        $('.contact-form').validate({ // initialize the plugin
703            rules: {
704                name: {
705                    required: true
706                },
707                email: {
708                    required: true,
709                    email: true
710                },
711                message: {
712                    required: true
713                },
714                subject: {
715                    required: true
716                }
717            },
718            submitHandler: function(form) {
719                // sending value with ajax request
720                $.post($(form).attr('action'), $(form).serialize(), function(response) {
721                    $(form).find('.form-result').append(response);
722                    $(form).find('input[type="text"]').val('');
723                    $(form).find('input[type="email"]').val('');
724                    $(form).find('textarea').val('');
725                    console.log(response);
726                });
727                return false;
728            }
729        });
730    }
731}
732
733function thmVideoPopup() {
734    if ($('.video-popup').length) {
735        $('.video-popup').magnificPopup({
736            disableOn: 700,
737            type: 'iframe',
738            mainClass: 'mfp-fade',
739            removalDelay: 160,
740            preloader: true,
741
742            fixedContentPos: false
743        });
744    };
745}
746
747function scrollToTarget() {
748    if ($('.scroll-to-target').length) {
749        $(".scroll-to-target").on('click', function() {
750            var target = $(this).attr('data-target');
751            // animate
752            $('html, body').animate({
753                scrollTop: $(target).offset().top
754            }, 1000);
755
756            return false;
757
758        });
759    }
760}
761
762
763
764
765function handlePreloader() {
766    if($('.preloader').length){
767        $('main').removeClass('active-preloader-ovh');
768        $('.preloader').fadeOut();
769    }
770}
771
772	// banner-carousel
773	if ($('.banner-carousel').length) {
774        $('.banner-carousel').owlCarousel({
775            loop:true,
776			margin:0,
777			nav:true,
778			animateOut: 'fadeOut',
779    		animateIn: 'fadeIn',
780    		active: true,
781			smartSpeed: 5000,
782			autoplay: 10000,
783            navText: [ '<span class="fal fa-angle-left"></span>', '<span class="fal fa-angle-right"></span>' ],
784            responsive:{
785                0:{
786                    items:1
787                },
788                600:{
789                    items:1
790                },
791                800:{
792                    items:1
793                },
794                1024:{
795                    items:1
796                }
797            }
798        });
799    }
800	
801	//Jquery Knob animation 
802	if ($('.dial').length) {
803		$('.dial').appear(function() {
804			var elm = $(this);
805			var color = elm.attr('data-fgColor');
806			var perc = elm.attr('value');
807			elm.knob({
808				'value': 0,
809				'min': 0,
810				'max': 100,
811				'skin': 'tron',
812				'readOnly': true,
813				'thickness': 0.10,
814				'dynamicDraw': true,
815				'displayInput': false
816			});
817			$({
818				value: 0
819			}).animate({
820				value: perc
821			}, {
822				duration: 2000,
823				easing: 'swing',
824				progress: function() {
825					elm.val(Math.ceil(this.value)).trigger('change');
826				}
827			});
828			//circular progress bar color
829			$(this).append(function() {
830				// elm.parent().parent().find('.circular-bar-content').css('color',color);
831				//elm.parent().parent().find('.circular-bar-content .txt').text(perc);
832			});
833		}, {
834			accY: 20
835		});
836	}
837	
838	if ($('#datepicker').length) {
839        $('#datepicker').datepicker();
840    };
841
842    if ($('ul.special-checkbox').length) {
843		$('ul.special-checkbox').find('li').on('click', function () {
844			$(this).toggleClass('active');
845		});
846	};
847
848	if ($('.select-input').length) {
849		$('.select-input').selectmenu();
850	};
851	
852	if ($('.thm-spinner').length) {
853		var spinnerMin = $('.thm-spinner').data('min-value');
854		var spinnerMax = $('.thm-spinner').data('max-value');
855		var spinnerDefault = $('.thm-spinner').data('default-value');
856		$('.thm-spinner').slider({
857			range: 'min',
858			min: spinnerMin,
859			max: spinnerMax,
860			value: spinnerDefault,
861			slide: function( event, ui ) {
862				$( '.vehicle-year' ).val( ui.value );
863			}
864		});
865		$( '.vehicle-year' ).val( $('.thm-spinner').slider('value') );
866	};
867
868function pogressbarAnim () {
869    if (jQuery('.single-progress-bar .pogress-wow').length) {
870        var wow = new WOW({
871            boxClass:     'pogress-wow',      // default
872            animateClass: 'animated',
873            mobile: true
874        });
875        wow.init();
876    }
877}
878
879	if ($('.theme_carousel').length) {
880		$(".theme_carousel").each(function (index) {
881			var $owlAttr = {},
882				$extraAttr = $(this).data("options");
883			$.extend($owlAttr, $extraAttr);
884			$(this).owlCarousel($owlAttr);
885		});
886	}
887
888function thmHalfChart() {
889    if (jQuery('.circle').length) {
890        var cricleWrap = $('.circle');
891        cricleWrap.each(function () {           
892            var Self = $(this);
893            var circleSize = Self.data('size');
894            var circleValue = Self.data('value');
895            var circleColor = Self.data('color');
896            Self.waypoint(function () {
897                Self.circleProgress({
898                    value: circleValue,
899                    size: circleSize,
900                    thickness: 18,
901                    fill: { color: circleColor }
902                });
903            }, { offset: 'bottom-in-view' });
904             
905        });
906    };
907}
908	
909thmHalfChart();
910	
911
912
913// instance of fuction while Document ready event   
914jQuery(document).on('ready', function() {
915    (function($) {
916		mobileNavToggle();
917        thmMailchimp();
918        //thmLightBox();
919        thmCounter();        
920        contactFormValidation();
921        scrollToTarget();
922        thmVideoPopup();
923        accrodion();
924        //bootstrapAnimatedLayer();
925    })(jQuery);
926});
927
928// instance of fuction while Window Load event
929jQuery(window).on('load', function() {
930    (function($) {
931        galleryMasonaryLayout();
932        handlePreloader();
933		sortableMasonry();
934        thmScrollAnim();
935        pogressbarAnim();
936        thmOwlCarousel();
937    })(jQuery);
938});
939
940
941
942
943})(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.