PageSourceSearch

https://kby.org/js/custom.js

js kby.org collected 2026-10-02 12:19:07 UTC 29,615 bytes, 1,244 lines download raw bytes

1/**
2Core script to handle the entire theme and core functions
3**/
4var Industry = function(){
5	/* Search Bar ============ */
6	siteUrl = '';
7	
8	var screenWidth = $( window ).width();
9	
10	var homeSearch = function() {
11		'use strict';
12		/* top search in header on click function */
13		var quikSearch = jQuery("#quik-search-btn");
14		var quikSearchRemove = jQuery("#quik-search-remove");
15		
16		quikSearch.on('click',function() {
17			
18			jQuery('.dlab-quik-search').fadeIn(500);
19			jQuery('.dlab-quik-search').addClass('On');
20			
21			
22		});
23		
24		quikSearchRemove.on('click',function() {
25			jQuery('.dlab-quik-search').fadeOut(500);
26			jQuery('.dlab-quik-search').removeClass('On');
27			
28			
29		});	
30		/* top search in header on click function End*/
31	}
32	
33	var cartButton = function(){
34		$(".item-close").on('click',function(){
35			$(this).closest(".cart-item").hide('500');
36		});
37		$('.cart-btn').unbind().on('click',function(){
38			$(".cart-list").slideToggle('slow');
39		})
40		
41	}  
42	
43	
44	/* One Page Layout ============ */
45	var onePageLayout = function() {
46		'use strict';
47		var headerHeight =   parseInt($('.onepage').css('height'), 10);
48		
49		$(".scroll").unbind().on('click',function(event) 
50		{
51			event.preventDefault();
52			
53			if (this.hash !== "") {
54				var hash = this.hash;	
55				var seactionPosition = $(hash).offset().top;
56				var headerHeight =   parseInt($('.onepage').css('height'), 10);
57				
58				
59				$('body').scrollspy({target: ".navbar", offset: headerHeight+2}); 
60				
61				var scrollTopPosition = seactionPosition - (headerHeight);
62				
63				$('html, body').animate({
64					scrollTop: scrollTopPosition
65				}, 800, function(){
66					
67				});
68			}   
69		});
70		$('body').scrollspy({target: ".navbar", offset: headerHeight + 2});  
71	}
72	
73	/* Header Height ============ */
74	var handleResizeElement = function(){
75		$('.header').css('height','');
76		var HeaderHeight = $('.header').height();
77		$('.header').css('height', HeaderHeight);
78		if(screenWidth > 991 ){
79			$('.homedemo').find('.mega-menu').css('height','calc(100vh - '+HeaderHeight+'px)');
80		}
81	}
82	
83	/* Load File ============ */
84	var dzTheme = function(){
85		 'use strict';
86		 var loadingImage = '<img src="images/loading.gif">';
87		 jQuery('.dzload').each(function(){
88		 var dzsrc =   siteUrl + $(this).attr('dzsrc');
89		  //jQuery(this).html(loadingImage);
90		 	jQuery(this).hide(function(){
91				jQuery(this).load(dzsrc, function(){
92					jQuery(this).fadeIn('slow');
93				}); 
94			})
95			
96		 });
97		 
98		
99		if(screenWidth <= 991 ){
100			jQuery('.navbar-nav > li > a, .sub-menu > li > a').unbind().on('click', function(e){
101				if(jQuery(this).parent().hasClass('open'))
102				{
103					jQuery(this).parent().removeClass('open');
104				}
105				else{
106					jQuery(this).parent().parent().find('li').removeClass('open');
107					jQuery(this).parent().addClass('open');
108				}
109			});
110		}
111	}
112	
113	/* Magnific Popup ============ */
114	var MagnificPopup = function(){
115		'use strict';	
116		/* magnificPopup function */
117		jQuery('.mfp-gallery').magnificPopup({
118			delegate: '.mfp-link',
119			type: 'image',
120			tLoading: 'Loading image #%curr%...',
121			mainClass: 'mfp-img-mobile',
122			gallery: {
123				enabled: true,
124				navigateByImgClick: true,
125				preload: [0,1] // Will preload 0 - before current, and 1 after the current image
126			},
127			image: {
128				tError: '<a href="%url%">The image #%curr%</a> could not be loaded.',
129				titleSrc: function(item) {
130					return item.el.attr('title') + '<small></small>';
131				}
132			}
133		});
134		/* magnificPopup function end */
135		
136		/* magnificPopup for paly video function */		
137		jQuery('.video').magnificPopup({
138			type: 'iframe',
139			iframe: {
140				markup: '<div class="mfp-iframe-scaler">'+
141						 '<div class="mfp-close"></div>'+
142						 '<iframe class="mfp-iframe" frameborder="0" allowfullscreen></iframe>'+
143						 '<div class="mfp-title">Some caption</div>'+
144						 '</div>'
145			},
146			callbacks: {
147				markupParse: function(template, values, item) {
148					values.title = item.el.attr('title');
149				}
150			}
151		});
152		/* magnificPopup for paly video function end*/
153		$('.popup-youtube, .popup-vimeo, .popup-gmaps').magnificPopup({
154			disableOn: 700,
155			type: 'iframe',
156			mainClass: 'mfp-fade',
157			removalDelay: 160,
158			preloader: false,
159
160			fixedContentPos: false
161		});
162	}
163	
164	
165	/* Scroll To Top ============ */
166	var scrollTop = function (){
167		'use strict';
168		var scrollTop = jQuery("button.scroltop");
169		/* page scroll top on click function */	
170		scrollTop.on('click',function() {
171			jQuery("html, body").animate({
172				scrollTop: 0
173			}, 1000);
174			return false;
175		})
176
177		jQuery(window).bind("scroll", function() {
178			var scroll = jQuery(window).scrollTop();
179			if (scroll > 900) {
180				jQuery("button.scroltop").fadeIn(1000);
181			} else {
182				jQuery("button.scroltop").fadeOut(1000);
183			}
184		});
185		/* page scroll top on click function end*/
186	}
187	
188	/* handle Accordian ============ */
189	var handleAccordian = function(){
190		/* accodin open close icon change */	 	
191		jQuery('#accordion').on('hidden.bs.collapse', function(e){
192			jQuery(e.target)
193				.prev('.panel-heading')
194				.find("i.indicator")
195				.toggleClass('glyphicon-minus glyphicon-plus');
196		});
197		jQuery('#accordion').on('shown.bs.collapse', function(e){
198			jQuery(e.target)
199				.prev('.panel-heading')
200				.find("i.indicator")
201				.toggleClass('glyphicon-minus glyphicon-plus');
202		});
203		/* accodin open close icon change end */
204	}
205	
206	/* handle Placeholder ============ */
207	var handlePlaceholder = function(){
208		/* input placeholder for ie9 & ie8 & ie7 */
209		jQuery.support.placeholder = ('placeholder' in document.createElement('input'));
210		/* input placeholder for ie9 & ie8 & ie7 end*/
211		
212		/*fix for IE7 and IE8  */
213		if (!jQuery.support.placeholder) {
214			jQuery("[placeholder]").focus(function () {
215				if (jQuery(this).val() == jQuery(this).attr("placeholder")) jQuery(this).val("");
216			}).blur(function () {
217				if (jQuery(this).val() == "") jQuery(this).val(jQuery(this).attr("placeholder"));
218			}).blur();
219
220			jQuery("[placeholder]").parents("form").submit(function () {
221				jQuery(this).find('[placeholder]').each(function() {
222					if (jQuery(this).val() == jQuery(this).attr("placeholder")) {
223						 jQuery(this).val("");
224					}
225				});
226			});
227		}
228		/*fix for IE7 and IE8 end */
229	}
230	
231	/* Equal Height ============ */
232	var equalHeight = function(container) {
233		
234		if(jQuery(container).length == 0)
235		{
236			return false
237		}
238			
239		var currentTallest = 0, 
240			currentRowStart = 0, 
241			rowDivs = new Array(), 
242			$el, topPosition = 0;
243			
244		$(container).each(function() {
245			$el = $(this);
246			$($el).height('auto')
247			topPostion = $el.position().top;
248
249			if (currentRowStart != topPostion) {
250				for (currentDiv = 0; currentDiv < rowDivs.length; currentDiv++) {
251					rowDivs[currentDiv].height(currentTallest);
252				}
253				rowDivs.length = 0; // empty the array
254				currentRowStart = topPostion;
255				currentTallest = $el.height();
256				rowDivs.push($el);
257			} else {
258				rowDivs.push($el);
259				currentTallest = (currentTallest < $el.height()) ? ($el.height()) : (currentTallest);
260			}
261			for (currentDiv = 0; currentDiv < rowDivs.length; currentDiv++) {
262				rowDivs[currentDiv].height(currentTallest);
263			}
264		});
265		
266	}
267	
268	/* Footer Align ============ */
269	var footerAlign = function() {
270		'use strict';
271		jQuery('.site-footer').css('display', 'block');
272		jQuery('.site-footer').css('height', 'auto');
273		var footerHeight = jQuery('.site-footer').outerHeight();
274		jQuery('.footer-fixed > .page-wraper').css('padding-bottom', footerHeight);
275		jQuery('.site-footer').css('height', footerHeight);
276	}
277	
278	/* File Input ============ */
279	var fileInput = function(){
280		'use strict';
281		/* Input type file jQuery */	 	 
282		jQuery(document).on('change', '.btn-file :file', function() {
283			var input = jQuery(this);
284			var	numFiles = input.get(0).files ? input.get(0).files.length : 1;
285			var	label = input.val().replace(/\\/g, '/').replace(/.*\//, '');
286			input.trigger('fileselect', [numFiles, label]);
287		});
288		
289		jQuery('.btn-file :file').on('fileselect', function(event, numFiles, label) {
290			input = jQuery(this).parents('.input-group').find(':text');
291			var log = numFiles > 10 ? numFiles + ' files selected' : label;
292		
293			if (input.length) {
294				input.val(log);
295			} else {
296				if (log) alert(log);
297			}
298		});
299		/* Input type file jQuery end*/
300	}
301	
302	/* Header Fixed ============ */
303	var headerFix = function(){
304		'use strict';
305		/* Main navigation fixed on top  when scroll down function custom */		
306		jQuery(window).bind('scroll', function () {
307			if(jQuery('.sticky-header').length)
308			{
309				var menu = jQuery('.sticky-header');
310				if ($(window).scrollTop() > menu.offset().top) {
311					menu.addClass('is-fixed');
312				} else {
313					menu.removeClass('is-fixed');
314				}
315			}
316		});
317		/* Main navigation fixed on top  when scroll down function custom end*/
318	}
319	
320	/* Masonry Box ============ */
321	var masonryBox = function(){
322		'use strict';
323		/* masonry by  = bootstrap-select.min.js */
324		if(jQuery('#masonry, .masonry').length)
325		{
326			var self = $("#masonry, .masonry");
327			if(jQuery('.card-container').length)
328		    {
329				self.imagesLoaded(function () {
330					self.masonry({
331						gutterWidth: 15,
332						isAnimated: true,
333						itemSelector: ".card-container"
334					});
335				});
336			}
337		}
338		if(jQuery('.filters').length)
339		{
340			jQuery(".filters").on('click','li',function(e) {
341				e.preventDefault();
342				var filter = $(this).attr("data-filter");
343				self.masonryFilter({
344					filter: function () {
345						if (!filter) return true;
346						//return $(this).attr("data-filter") == filter;
347						return $(this).hasClass(filter);
348					}
349				});
350			});
351		}
352		/* masonry by  = bootstrap-select.min.js end */
353	}
354	
355	/* Use on Shortcode Filter Page ============ */
356	var handleMasonryFilter = function(){
357		'use strict';
358		
359		if(jQuery('#masonry1').length)
360		{
361			var masonry1 = $("#masonry1");
362			
363				masonry1.imagesLoaded(function () {
364					masonry1.masonry({
365						gutterWidth: 15,
366						isAnimated: true,
367						itemSelector: ".card-container"
368					});
369				});
370			
371			
372			
373			jQuery(".filters1").on('click','li',function(e) {
374				e.preventDefault();
375				var filter = $(this).attr("data-filter");
376				masonry1.masonryFilter({
377					filter: function () {
378						if (!filter) return true;
379						return $(this).hasClass(filter);
380					}
381				});
382			});
383			
384		}
385		
386		if(jQuery('#masonry2').length)
387		{
388			var masonry2 = $("#masonry2");
389			
390				masonry2.imagesLoaded(function () {
391					masonry2.masonry({
392						gutterWidth: 15,
393						isAnimated: true,
394						itemSelector: ".card-container"
395					});
396				});
397			
398			
399			
400			jQuery(".filters2").on('click','li',function(e) {
401				e.preventDefault();
402				var filter = $(this).attr("data-filter");
403				masonry2.masonryFilter({
404					filter: function () {
405						if (!filter) return true;
406						return $(this).hasClass(filter);
407					}
408				});
409			});
410			
411		}
412		
413		if(jQuery('#masonry3').length)
414		{
415			var masonry3 = $("#masonry3");
416			
417				masonry3.imagesLoaded(function () {
418					masonry3.masonry({
419						gutterWidth: 15,
420						isAnimated: true,
421						itemSelector: ".card-container"
422					});
423				});
424			
425			
426			
427			jQuery(".filters3").on('click','li',function(e) {
428				e.preventDefault();
429				var filter = $(this).attr("data-filter");
430				masonry3.masonryFilter({
431					filter: function () {
432						if (!filter) return true;
433						return $(this).hasClass(filter);
434					}
435				});
436			});
437			
438		}
439		
440		if(jQuery('#masonry4').length)
441		{
442			var masonry4 = $("#masonry4");
443			
444				masonry4.imagesLoaded(function () {
445					masonry4.masonry({
446						gutterWidth: 15,
447						isAnimated: true,
448						itemSelector: ".card-container"
449					});
450				});
451			
452			
453			
454			jQuery(".filters4").on('click','li',function(e) {
455				e.preventDefault();
456				var filter = $(this).attr("data-filter");
457				masonry4.masonryFilter({
458					filter: function () {
459						if (!filter) return true;
460						return $(this).hasClass(filter);
461					}
462				});
463			});
464			
465		}
466		
467		
468		if(jQuery('#masonry5').length)
469		{
470			var masonry5 = $("#masonry5");
471			
472				masonry5.imagesLoaded(function () {
473					masonry5.masonry({
474						gutterWidth: 15,
475						isAnimated: true,
476						itemSelector: ".card-container"
477					});
478				});
479			
480			
481			
482			jQuery(".filters5").on('click','li',function(e) {
483				e.preventDefault();
484				var filter = $(this).attr("data-filter");
485				masonry5.masonryFilter({
486					filter: function () {
487						if (!filter) return true;
488						return $(this).hasClass(filter);
489					}
490				});
491			});
492			
493		}
494		
495		
496		if(jQuery('#masonry6').length)
497		{
498			var masonry6 = $("#masonry6");
499			
500				masonry6.imagesLoaded(function () {
501					masonry6.masonry({
502						gutterWidth: 15,
503						isAnimated: true,
504						itemSelector: ".card-container"
505					});
506				});
507			
508			
509			
510			jQuery(".filters6").on('click','li',function(e) {
511				e.preventDefault();
512				var filter = $(this).attr("data-filter");
513				masonry6.masonryFilter({
514					filter: function () {
515						if (!filter) return true;
516						return $(this).hasClass(filter);
517					}
518				});
519			});
520			
521		}
522		
523		
524		if(jQuery('#masonry7').length)
525		{
526			var masonry7 = $("#masonry7");
527			
528				masonry7.imagesLoaded(function () {
529					masonry7.masonry({
530						gutterWidth: 15,
531						isAnimated: true,
532						itemSelector: ".card-container"
533					});
534				});
535			
536			
537			
538			jQuery(".filters7").on('click','li',function(e) {
539				e.preventDefault();
540				var filter = $(this).attr("data-filter");
541				masonry7.masonryFilter({
542					filter: function () {
543						if (!filter) return true;
544						return $(this).hasClass(filter);
545					}
546				});
547			});
548			
549		}
550		
551		
552		if(jQuery('#masonry8').length)
553		{
554			var masonry8 = $("#masonry8");
555			
556				masonry8.imagesLoaded(function () {
557					masonry8.masonry({
558						gutterWidth: 15,
559						isAnimated: true,
560						itemSelector: ".card-container"
561					});
562				});
563			
564			
565			
566			jQuery(".filters8").on('click','li',function(e) {
567				e.preventDefault();
568				var filter = $(this).attr("data-filter");
569				masonry8.masonryFilter({
570					filter: function () {
571						if (!filter) return true;
572						return $(this).hasClass(filter);
573					}
574				});
575			});
576			
577		}
578		
579		
580		if(jQuery('#masonry9').length)
581		{
582			var masonry9 = $("#masonry9");
583			
584				masonry9.imagesLoaded(function () {
585					masonry9.masonry({
586						gutterWidth: 15,
587						isAnimated: true,
588						itemSelector: ".card-container"
589					});
590				});
591			
592			
593			
594			jQuery(".filters9").on('click','li',function(e) {
595				e.preventDefault();
596				var filter = $(this).attr("data-filter");
597				masonry9.masonryFilter({
598					filter: function () {
599						if (!filter) return true;
600						return $(this).hasClass(filter);
601					}
602				});
603			});
604			
605		}
606		
607		
608		if(jQuery('#masonry10').length)
609		{
610			var masonry10 = $("#masonry10");
611			
612				masonry10.imagesLoaded(function () {
613					masonry10.masonry({
614						gutterWidth: 15,
615						isAnimated: true,
616						itemSelector: ".card-container"
617					});
618				});
619			
620			
621			
622			jQuery(".filters10").on('click','li',function(e) {
623				e.preventDefault();
624				var filter = $(this).attr("data-filter");
625				masonry10.masonryFilter({
626					filter: function () {
627						if (!filter) return true;
628						return $(this).hasClass(filter);
629					}
630				});
631			});
632			
633		}
634		
635		
636		if(jQuery('#masonry11').length)
637		{
638			var masonry11 = $("#masonry11");
639			
640				masonry11.imagesLoaded(function () {
641					masonry11.masonry({
642						gutterWidth: 15,
643						isAnimated: true,
644						itemSelector: ".card-container"
645					});
646				});
647			
648			
649			
650			jQuery(".filters11").on('click','li',function(e) {
651				e.preventDefault();
652				var filter = $(this).attr("data-filter");
653				masonry11.masonryFilter({
654					filter: function () {
655						if (!filter) return true;
656						return $(this).hasClass(filter);
657					}
658				});
659			});
660			
661		}
662		
663		
664		if(jQuery('#masonry12').length)
665		{
666			var masonry12 = $("#masonry12");
667			
668				masonry12.imagesLoaded(function () {
669					masonry12.masonry({
670						gutterWidth: 15,
671						isAnimated: true,
672						itemSelector: ".card-container"
673					});
674				});
675			
676			
677			
678			jQuery(".filters12").on('click','li',function(e) {
679				e.preventDefault();
680				var filter = $(this).attr("data-filter");
681				masonry12.masonryFilter({
682					filter: function () {
683						if (!filter) return true;
684						return $(this).hasClass(filter);
685					}
686				});
687			});
688			
689		}
690		
691		
692		if(jQuery('#masonry13').length)
693		{
694			var masonry13 = $("#masonry13");
695			
696				masonry13.imagesLoaded(function () {
697					masonry13.masonry({
698						gutterWidth: 15,
699						isAnimated: true,
700						itemSelector: ".card-container"
701					});
702				});
703			
704			
705			
706			jQuery(".filters13").on('click','li',function(e) {
707				e.preventDefault();
708				var filter = $(this).attr("data-filter");
709				masonry13.masonryFilter({
710					filter: function () {
711						if (!filter) return true;
712						return $(this).hasClass(filter);
713					}
714				});
715			});
716			
717		}
718		
719		
720		if(jQuery('#masonry14').length)
721		{
722			var masonry14 = $("#masonry14");
723			
724				masonry14.imagesLoaded(function () {
725					masonry14.masonry({
726						gutterWidth: 15,
727						isAnimated: true,
728						itemSelector: ".card-container"
729					});
730				});
731			
732			
733			
734			jQuery(".filters14").on('click','li',function(e) {
735				e.preventDefault();
736				var filter = $(this).attr("data-filter");
737				masonry14.masonryFilter({
738					filter: function () {
739						if (!filter) return true;
740						return $(this).hasClass(filter);
741					}
742				});
743			});
744			
745		}
746		
747		
748		if(jQuery('#masonry15').length)
749		{
750			var masonry15 = $("#masonry15");
751			
752				masonry15.imagesLoaded(function () {
753					masonry15.masonry({
754						gutterWidth: 15,
755						isAnimated: true,
756						itemSelector: ".card-container"
757					});
758				});
759			
760			
761			
762			jQuery(".filters15").on('click','li',function(e) {
763				e.preventDefault();
764				var filter = $(this).attr("data-filter");
765				masonry15.masonryFilter({
766					filter: function () {
767						if (!filter) return true;
768						return $(this).hasClass(filter);
769					}
770				});
771			});
772			
773		}
774		
775		
776		if(jQuery('#masonry16').length)
777		{
778			var masonry16 = $("#masonry16");
779			
780				masonry16.imagesLoaded(function () {
781					masonry16.masonry({
782						gutterWidth: 15,
783						isAnimated: true,
784						itemSelector: ".card-container"
785					});
786				});
787			
788			
789			
790			jQuery(".filters16").on('click','li',function(e) {
791				e.preventDefault();
792				var filter = $(this).attr("data-filter");
793				masonry16.masonryFilter({
794					filter: function () {
795						if (!filter) return true;
796						return $(this).hasClass(filter);
797					}
798				});
799			});
800			
801		}
802		
803		
804		if(jQuery('#masonry17').length)
805		{
806			var masonry17 = $("#masonry17");
807			
808				masonry17.imagesLoaded(function () {
809					masonry17.masonry({
810						gutterWidth: 15,
811						isAnimated: true,
812						itemSelector: ".card-container"
813					});
814				});
815			
816			
817			
818			jQuery(".filters17").on('click','li',function(e) {
819				e.preventDefault();
820				var filter = $(this).attr("data-filter");
821				masonry17.masonryFilter({
822					filter: function () {
823						if (!filter) return true;
824						return $(this).hasClass(filter);
825					}
826				});
827			});
828			
829		}
830		
831		
832		if(jQuery('#masonry18').length)
833		{
834			var masonry18 = $("#masonry18");
835			
836				masonry18.imagesLoaded(function () {
837					masonry18.masonry({
838						gutterWidth: 15,
839						isAnimated: true,
840						itemSelector: ".card-container"
841					});
842				});
843			
844			
845			
846			jQuery(".filters18").on('click','li',function(e) {
847				e.preventDefault();
848				var filter = $(this).attr("data-filter");
849				masonry18.masonryFilter({
850					filter: function () {
851						if (!filter) return true;
852						return $(this).hasClass(filter);
853					}
854				});
855			});
856			
857		}
858		
859	}
860	
861		
862	/* Set Div Height ============ */
863	var setDivHeight = function(){	
864		'use strict';
865		var allHeights = [];
866		jQuery('.dzseth > div, .dzseth .img-cover, .dzseth .seth').each(function(e){
867			allHeights.push(jQuery(this).height());
868		})
869
870		jQuery('.dzseth > div, .dzseth .img-cover, .dzseth .seth').each(function(e){
871			var maxHeight = Math.max.apply(Math,allHeights);
872			jQuery(this).css('height',maxHeight);
873		})
874		
875		allHeights = [];
876		/* Removice */
877		//var screenWidth = $( window ).width();
878		if(screenWidth < 991)
879		{
880			jQuery('.dzseth > div, .dzseth .img-cover, .dzseth .seth').each(function(e){
881				jQuery(this).css('height','');
882			})
883		}	
884	}
885	
886	/* Counter Number ============ */
887	var counter = function(){
888		if(jQuery('.counter').length)
889		{
890			jQuery('.counter').counterUp({
891				delay: 10,
892				time: 3000
893			});	
894		}
895	}
896	
897	/* Video Popup ============ */
898	var handleVideo = function(){
899		/* Video responsive function */	
900		jQuery('iframe[src*="youtube.com"]').wrap('<div class="embed-responsive embed-responsive-16by9"></div>');
901		jQuery('iframe[src*="vimeo.com"]').wrap('<div class="embed-responsiv
901e embed-responsive-16by9"></div>');	
902		/* Video responsive function end */
903	}
904	
905	/* Gallery Filter ============ */
906	var handleFilterMasonary = function(){
907		/* gallery filter activation = jquery.mixitup.min.js */ 
908		if (jQuery('#image-gallery-mix').length) {
909			jQuery('.gallery-filter').find('li').each(function () {
910				$(this).addClass('filter');
911			});
912			jQuery('#image-gallery-mix').mixItUp();
913		};
914		if(jQuery('.gallery-filter.masonary').length){
915			jQuery('.gallery-filter.masonary').on('click','span', function(){
916				var selector = $(this).parent().attr('data-filter');
917				jQuery('.gallery-filter.masonary span').parent().removeClass('active');
918				jQuery(this).parent().addClass('active');
919				jQuery('#image-gallery-isotope').isotope({ filter: selector });
920				return false;
921			});
922		}
923		/* gallery filter activation = jquery.mixitup.min.js */
924	}
925	
926	/* handle Bootstrap Select ============ */
927	var handleBootstrapSelect = function(){
928		/* Bootstrap Select box function by  = bootstrap-select.min.js */ 
929		if (jQuery('select').length) {
930		    jQuery('select').selectpicker();
931		}
932		/* Bootstrap Select box function by  = bootstrap-select.min.js end*/
933	}
934	
935	/* handle Bootstrap Touch Spin ============ */
936	var handleBootstrapTouchSpin = function(){
937		jQuery("input[name='demo_vertical2']").TouchSpin({
938		  verticalbuttons: true,
939		  verticalupclass: 'ti-plus',
940		  verticaldownclass: 'ti-minus'
941		});
942		
943	}
944	/* Resizebanner ============ */
945	var handleBannerResize = function(){
946		$(".full-height").css("height", $(window).height());
947	}
948	
949	/* Countdown ============ */
950	var handleCountDown = function(WebsiteLaunchDate){
951		/* Time Countr Down Js */
952		if($(".countdown").length)
953		{
954			$('.countdown').countdown({date: WebsiteLaunchDate+' 23:5'}, function() {
955				$('.countdown').text('we are live');
956			});
957		}
958		/* Time Countr Down Js End */
959	}
960	
961	/* Content Scroll ============ */
962	var handleCustomScroll = function(){
963		/* all available option parameters with their default values */
964		if($(".content-scroll").length)
965		{ 
966			$(".content-scroll").mCustomScrollbar({
967				setWidth:false,
968				setHeight:false,
969				axis:"y"
970			});	
971		}
972	}
973	
974	/* WOW ANIMATION ============ */
975	var wow_animation = function(){
976		if($('.wow').length > 0)
977		{
978			var wow = new WOW(
979			{
980			  boxClass:     'wow',      // animated element css class (default is wow)
981			  animateClass: 'animated', // animation css class (default is animated)
982			  offset:       50,          // distance to the element when triggering the animation (default is 0)
983			  mobile:       false       // trigger animations on mobile devices (true is default)
984			});
985			wow.init();	
986		}	
987	}
988	
989	/* Left Menu ============ */
990	var handleSideBarMenu = function(){
991		$('.openbtn').on('click',function(e){
992			e.preventDefault();
993			if($('#mySidenav').length > 0)
994			{
995				document.getElementById("mySidenav").style.left = "0";
996			}
997
998			if($('#mySidenav1').length > 0)
999			{
1000				document.getElementById("mySidenav1").style.right = "0";
1001			}
1002			
1003		})
1004		
1005		$('.closebtn').on('click',function(e){
1006			e.preventDefault();
1007			if($('#mySidenav').length > 0)
1008			{
1009				document.getElementById("mySidenav").style.left = "-300px";
1010			}
1011			
1012			if($('#mySidenav1').length > 0)
1013			{
1014				document.getElementById("mySidenav1").style.right = "-820px";
1015			}
1016		})
1017	}
1018	
1019	/* Range ============ */
1020	var priceslider = function(){
1021
1022		if($(".price-slide, .price-slide-2").length > 0 ) {
1023			$("#slider-range,#slider-range-2").slider({
1024				range: true,
1025				min: 300,
1026				max: 4000,
1027				values: [0, 5000],
1028				slide: function(event, ui) {
1029					var min = ui.values[0],
1030						max = ui.values[1];
1031					  $('#' + this.id).prev().val("$" + min + " - $" + max);
1032				}
1033			});
1034		}
1035	}
1036	
1037	/* BGEFFECT ============ */
1038	
1039	var boxHover = function(){
1040	
1041		jQuery('.box-hover').on('mouseenter',function(){
1042			jQuery('.box-hover').removeClass('active');
1043			jQuery(this).addClass('active');
1044			
1045		})
1046	}
1047	
1048	var reposition = function (){
1049		'use strict';
1050		var modal = jQuery(this),
1051		dialog = modal.find('.modal-dialog');
1052		modal.css('display', 'block');
1053		
1054		/* Dividing by two centers the modal exactly, but dividing by three 
1055		 or four works better for larger screens.  */
1056		dialog.css("margin-top", Math.max(0, (jQuery(window).height() - dialog.height()) / 2));
1057	}
1058	
1059	var handelResize = function (){
1060		
1061		/* Reposition when the window is resized */
1062		jQuery(window).on('resize', function() {
1063			jQuery('.modal:visible').each(reposition);
1064		
1065			equalHeight('.equal-wraper .equal-col');
1066			footerAlign();
1067		});
1068	}
1069	
1070	/* Website Launch Date */ 
1071	var WebsiteLaunchDate = new Date();
1072	monthNames = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "
1072November", "December"];
1073	WebsiteLaunchDate.setMonth(WebsiteLaunchDate.getMonth() + 1);
1074	WebsiteLaunchDate =  WebsiteLaunchDate.getDate() + " " + monthNames[WebsiteLaunchDate.getMonth()] + " " + WebsiteLaunchDate.getFullYear();
1075	/* Website Launch Date END */ 
1076	
1077	/* Header Height ============ */
1078	var setResizeMargin = function(){
1079		if(($('.setResizeMargin').length > 0) && screenWidth >= 1280){
1080			var containerSize = $('.container').width();
1081			var getMargin = (screenWidth - containerSize)/2;
1082			$('.setResizeMargin').css('margin-left',getMargin);
1083		}
1084	}
1085	
1086	var handlePlaceholderAnimation = function()
1087	{
1088		if(jQuery('.dezPlaceAni').length)
1089		{
1090		
1091			$('.dezPlaceAni input, .dezPlaceAni textarea').on('focus',function(){
1092			  $(this).parents('.form-group, .news-box').addClass('focused');
1093			});
1094			
1095			$('.dezPlaceAni input, .dezPlaceAni textarea').on('blur',function(){
1096			  var inputValue = $(this).val();
1097			  if ( inputValue == "" ) {
1098				$(this).removeClass('filled');
1099				$(this).parents('.form-group, .news-box').removeClass('focused');  
1100			  } else {
1101				$(this).addClass('filled');
1102			  }
1103			})
1104		}
1105	}
1106	
1107	/* Light Gallery ============ */
1108	var lightGallery = function (){
1109		if(($('#lightgallery, .lightgallery').length > 0)){
1110			$('#lightgallery, .lightgallery').lightGallery({
1111				selector : '.check-km',
1112				loop:true,
1113				thumbnail:true,
1114				exThumbImage: 'data-exthumbimage'
1115			});
1116		}
1117	}
1118	
1119	/* Load File ============ */
1120	var dzTheme = function(){
1121		 'use strict';
1122		
1123				
1124		if(screenWidth <= 991 ){
1125			jQuery('.navbar-nav > li > a, .sub-menu > li > a').unbind().on('click', function(e){
1126				//e.preventDefault();
1127				if(jQuery(this).parent().hasClass('open'))
1128				{
1129					jQuery(this).parent().removeClass('open');
1130				}
1131				else{
1132					jQuery(this).parent().parent().find('li').removeClass('open');
1133					jQuery(this).parent().addClass('open');
1134				}
1135			});
1136		}
1137		
1138		jQuery('.full-sidenav .navbar-nav > li > a').next('.sub-menu').slideUp();
1139		jQuery('.full-sidenav .sub-menu > li > a').next('.sub-menu').slideUp();
1140			
1141		jQuery('.full-sidenav .navbar-nav > li > a, .full-sidenav .sub-menu > li > a').unbind().on('click', function(e){
1142			jQuery('.full-sidenav .navbar-nav > li > a').not(this).next('.sub-menu').slideUp();
1143			jQuery(this).next('.sub-menu').toggle(500);
1144		});
1145		
1146		jQuery('.menu-icon').on('click',function(){
1147			jQuery('.menu-close,.full-sidenav').addClass('active');
1148			onePageLayout();
1149		});
1150		jQuery('.menu-close').on('click',function(){
1151			jQuery('.menu-close,.full-sidenav').removeClass('active');
1152		});
1153	}
1154	
1155	/* Function ============ */
1156	return {
1157		init:function(){
1158			boxHover();
1159			wow_animation();
1160			priceslider();
1161			onePageLayout();
1162			dzTheme();
1163			handleResizeElement();
1164			homeSearch();
1165			MagnificPopup();
1166			handleAccordian();
1167			scrollTop();
1168			handlePlaceholder();
1169			handlePlaceholderAnimation();
1170			footerAlign();
1171			fileInput();
1172			headerFix();
1173			setDivHeight();
1174			handleVideo();
1175			handleFilterMasonary();
1176			handleCountDown(WebsiteLaunchDate);
1177			handleCustomScroll();
1178			handleSideBarMenu();
1179			cartButton();
1180			handleBannerResize();
1181			setResizeMargin();
1182			handelResize();
1183			lightGallery();
1184			jQuery('.modal').on('show.bs.modal', reposition);
1185		},
1186		
1187		handleMasonryFilter:function(){
1188			handleMasonryFilter();
1189		},
1190		
1191		load:function(){
1192			handleBootstrapSelect();
1193			handleBootstrapTouchSpin();
1194			equalHeight('.equal-wraper .equal-col');
1195			counter();
1196			masonryBox();
1197		},
1198		
1199		resize:function(){
1200			screenWidth = $(window).width();
1201			dzTheme();
1202			setTimeout(function(){
1203				handleResizeElement();
1204			}, 500);
1205			
1206		}
1207	}
1208	
1209}();
1210
1211/* Document.ready Start */	
1212jQuery(document).ready(function() {
1213    'use strict';
1214	Industry.init();
1215	
1216	$('a[data-toggle="tab"]').click(function(){
1217		// todo remove snippet on bootstrap v4
1218		$('a[data-toggle="tab"]').click(function() {
1219		  $($(this).attr('href')).show().addClass('show active').siblings().hide();
1220		})
1221	});	
1222	
1223	jQuery('.navicon').on('click',function(){
1224		$(this).toggleClass('open');
1225	});
1226
1227});
1228/* Document.ready END */
1229
1230/* Window Load START */
1231jQuery(window).on('load',function () {
1232	'use strict'; 
1233	Industry.load();
1234	setTimeout(function(){
1235		jQuery('#loading-area').remove();
1236	}, 0);
1237});
1238/*  Window Load END */
1239/* Window Resize START */
1240jQuery(window).on('resize',function () {
1241	'use strict'; 
1242	Industry.resize();
1243});
1244/*  Window Resize END */

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.