PageSourceSearch

https://www.dhanlaxmisteel.com/js/custom.js

js dhanlaxmisteel.com collected 2026-10-04 02:25:14 UTC 25,772 bytes, 927 lines download raw bytes

1/* =====================================
2All JavaScript fuctions Start
3======================================*/
4(function ($) {
5	
6    'use strict';
7/*--------------------------------------------------------------------------------------------
8	document.ready ALL FUNCTION START
9---------------------------------------------------------------------------------------------*/	
10
11
12// > Video responsive function by = custom.js ========================= //	
13	function video_responsive(){	
14		jQuery('iframe[src*="youtube.com"]').wrap('<div class="embed-responsive embed-responsive-16by9"></div>');
15		jQuery('iframe[src*="vimeo.com"]').wrap('<div class="embed-responsive embed-responsive-16by9"></div>');	
16	}  
17
18// > magnificPopup function	by = magnific-popup.js =========================== //
19	function magnific_popup(){
20        jQuery('.mfp-gallery').magnificPopup({
21          delegate: '.mfp-link',
22          type: 'image',
23          tLoading: 'Loading image #%curr%...',
24          mainClass: 'mfp-img-mobile',
25          gallery: {
26            enabled: true,
27            navigateByImgClick: true,
28            preload: [0,1] // Will preload 0 - before current, and 1 after the current image
29          },
30          image: {
31            tError: '<a href="%url%">The image #%curr%</a> could not be loaded.',
32          }
33       });
34	}
35
36// > magnificPopup for video function	by = magnific-popup.js ===================== //	
37	function magnific_video(){	
38		jQuery('.mfp-video').magnificPopup({
39			type: 'iframe',
40		});
41	}
42
43// Vertically center Bootstrap modal popup function by = custom.js ==============//
44	function popup_vertical_center(){	
45		jQuery(function() {
46			function reposition() {
47				var modal = jQuery(this),
48				dialog = modal.find('.modal-dialog');
49				modal.css('display', 'block');
50				
51				// Dividing by two centers the modal exactly, but dividing by three 
52				// or four works better for larger screens.
53				dialog.css("margin-top", Math.max(0, (jQuery(window).height() - dialog.height()) / 2));
54			}
55			// Reposition when a modal is shown
56			jQuery('.modal').on('show.bs.modal', reposition);
57			// Reposition when the window is resized
58			jQuery(window).on('resize', function() {
59				jQuery('.modal:visible').each(reposition);
60			});
61		});
62	}
63
64// > Main menu sticky on top  when scroll down function by = custom.js ========== //		
65	function sticky_header(){
66		if(jQuery('.sticky-header').length){
67			var sticky = new Waypoint.Sticky({
68			  element: jQuery('.sticky-header')
69			});
70		}
71	}
72	
73
74	// > Sidebar sticky  when scroll down function by = custom.js ========== //		
75	function sticky_sidebar(){
76		if(jQuery.fn.theiaStickySidebar){
77			$('.rightSidebar')
78				.theiaStickySidebar({
79					additionalMarginTop: 100
80				});
81		}
82	}
83
84
85// > page scroll top on button click function by = custom.js ===================== //	
86	function scroll_top(){
87		jQuery("button.scroltop").on('click', function() {
88			jQuery("html, body").animate({
89				scrollTop: 0
90			}, 1000);
91			return false;
92		});
93
94		jQuery(window).on("scroll", function() {
95			var scroll = jQuery(window).scrollTop();
96			if (scroll > 900) {
97				jQuery("button.scroltop").fadeIn(1000);
98			} else {
99				jQuery("button.scroltop").fadeOut(1000);
100			}
101		});
102	}
103	
104// > input type file function by = custom.js ========================== //	 	 
105	function input_type_file_form(){
106		jQuery(document).on('change', '.btn-file :file', function() {
107			var input = jQuery(this),
108				numFiles = input.get(0).files ? input.get(0).files.length : 1,
109				label = input.val().replace(/\\/g, '/').replace(/.*\//, '');
110			input.trigger('fileselect', [numFiles, label]);
111		});
112
113		jQuery('.btn-file :file').on('fileselect', function(event, numFiles, label) {
114			var input = jQuery(this).parents('.input-group').find(':text'),
115				log = numFiles > 10 ? numFiles + ' files selected' : label;
116			if (input.length) {
117				input.val(log);
118			} else {
119				if (log) alert(log);
120			}
121		});	
122	}
123
124// > input Placeholder in IE9 function by = custom.js ======================== //	
125	function placeholderSupport(){
126	/* input placeholder for ie9 & ie8 & ie7 */
127		jQuery.support.placeholder = ('placeholder' in document.createElement('input'));
128		/* input placeholder for ie9 & ie8 & ie7 end*/
129		/*fix for IE7 and IE8  */
130		if (!jQuery.support.placeholder) {
131			jQuery("[placeholder]").on('focus', function () {
132				if (jQuery(this).val() === jQuery(this).attr("placeholder")) jQuery(this).val("");
133			}).blur(function () {
134				if (jQuery(this).val() === "") jQuery(this).val(jQuery(this).attr("placeholder"));
135			}).blur();
136
137			jQuery("[placeholder]").parents("form").on('submit', function () {
138				jQuery(this).find('[placeholder]').each(function() {
139					if (jQuery(this).val() === jQuery(this).attr("placeholder")) {
140						 jQuery(this).val("");
141					}
142				});
143			});
144		}
145		/*fix for IE7 and IE8 end */
146	}	
147
148
149// > footer fixed on bottom function by = custom.js ======================== //	
150	function footer_fixed() {
151	  jQuery('.site-footer').css('display', 'block');
152	  jQuery('.site-footer').css('height', 'auto');
153	  var footerHeight = jQuery('.site-footer').outerHeight();
154	  jQuery('.footer-fixed > .page-wraper').css('padding-bottom', footerHeight);
155	  jQuery('.site-footer').css('height', footerHeight);
156	}
157	
158	
159// > accordion active calss function by = custom.js ========================= //	
160	function accordion_active() {
161		$('.acod-head a').on('click', function() {
162			$('.acod-head').removeClass('acc-actives');
163			$(this).parents('.acod-head').addClass('acc-actives');
164			$('.acod-title').removeClass('acc-actives'); //just to make a visual sense
165			$(this).parent().addClass('acc-actives'); //just to make a visual sense
166			($(this).parents('.acod-head').attr('class'));
167		 });
168	}	
169
170	// > My Account Nav submenu show hide on mobile by = custom.js
171	function Submenu_toogle_adminnav() {			
172		jQuery(".sub-menu").parent('li').addClass('has-child');
173		jQuery(".megamenu").parent('li').addClass('has-child');
174		jQuery("<div class='fa fa-angle-right open-close-admin-btn'></div>").insertAfter(".admin-nav .has-child > a");
175		jQuery('.has-child a+.open-close-admin-btn').on('click', function(ev) {
176			jQuery(this).next(jQuery('.sub-menu')).slideToggle('fast', function(){
177				jQuery(this).parent().toggleClass('nav-active');
178			});
179			ev.stopPropagation();
180		});
181	}
182
183// > Nav submenu show hide on mobile by = custom.js
184	 function mobile_nav(){
185		jQuery(".sub-menu").parent('li').addClass('has-child');
186		jQuery(".megamenu").parent('li').addClass('has-child');
187		jQuery("<div class='fa fa-angle-right submenu-toogle'></div>").insertAfter(".has-child > a");
188		jQuery('.has-child a+.submenu-toogle').on('click',function(ev) {
189			jQuery(this).next(jQuery('.sub-menu')).slideToggle('fast', function(){
190				jQuery(this).parent().toggleClass('nav-active');
191			});
192			ev.stopPropagation();
193		});
194	 }
195	 
196 
197	 
198	// Mobile side drawer function by = custom.js
199	function mobile_side_drawer(){
200		jQuery('#mobile-side-drawer').on('click', function () { 
201			jQuery('.mobile-sider-drawer-menu').toggleClass('active');
202		});
203	}	
204	
205//  > Top Search bar Show Hide function by = custom.js =================== //	
206
207	function site_search(){
208		
209	  jQuery(".header-search-icon").on('click', function(){
210		jQuery("#search-toggle-block").slideToggle("slow");
211		jQuery('.header-search-icon').toggleClass('close');
212	  });
213	  
214	}	
215	
216// Home page Services function by = owl.carousel.js ========================== //
217	function services_slider(){
218	jQuery('.services-slider').owlCarousel({
219		loop:true,
220		autoplay:true,
221		nav:true,
222		dots: false,	
223		margin:10,
224		navText: ['<i class="fa fa-long-arrow-left"></i>', '<i class="fa fa-long-arrow-right"></i>'],
225		responsive:{
226			0:{
227				items:1,
228			},
229			640:{
230				items:1,
231			},			
232			767:{
233				items:2,
234     		},				
235			991:{
236				items:2,
237			},
238			1366:{
239				items:2,
240			},			
241			1400:{
242				items:3
243			}		
244		}
245	});
246	}
247	
248// Home page how-we-work function by = owl.carousel.js ========================== //
249	function how_we_work(){
250	jQuery('.how-we-work').owlCarousel({
251		loop:true,
252		autoplay:false,
253		nav:true,
254		dots: false,	
255		margin:10,
256		navText: ['<i class="fa fa-long-arrow-left"></i>', '<i class="fa fa-long-arrow-right"></i>'],
257		responsive:{
258			0:{
259				items:1,
260			},
261			640:{
262				items:1,
263			},			
264			767:{
265				items:2,
266     		},				
267			991:{
268				items:2,
269			},
270			1366:{
271				items:4,
272			},			
273			1400:{
274				items:4
275			}		
276		}
277	});
278	}
279	
280	
281// Home page Project Slider function by = owl.carousel.js ========================== //
282	function project_1_slider(){
283	jQuery('.project-1-slider').owlCarousel({
284		loop:true,
285		autoplay:false,
286		nav:true,
287		dots: false,	
288		margin:30,
289		navText: ['<i class="fa fa-long-arrow-left"></i>', '<i class="fa fa-long-arrow-right"></i>'],
290		responsive:{
291			0:{
292				items:1,
293			},
294			1400:{
295				items:1
296			}		
297		}
298	});
299	}
300	
301// featured products Slider function by = owl.carousel.js ========================== //
302	function featured_products(){
303	jQuery('.featured-products').owlCarousel({
304		loop:true,
305		autoplay:true,
306		nav:true,
307		dots: false,	
308		margin:30,
309		navText: ['<i class="fa fa-chevron-left"></i>', '<i class="fa fa-chevron-right"></i>'],
310		responsive:{
311			0:{
312				items:1,
313			},
314			640:{
315				items:2,
316			},			
317			767:{
318				items:2,
319     		},				
320			991:{
321				items:3,
322			},
323			1024:{
324				items:3,
325			}	
326		}
327	});
328	}
329	
330	
331// > TouchSpin box function by  = jquery.bootstrap-touchspin.js =============== // 
332
333	function input_number_vertical_form() {
334		if(jQuery.fn.TouchSpin){
335			jQuery("input[name='demo_vertical2']").TouchSpin({
336			  verticalbuttons: true,
337			  verticalupclass: 'fa fa-plus',
338			  verticaldownclass: 'fa fa-minus'
339			});
340		}
341	}
342	
343// Home page Testimonial Slider function by = owl.carousel.js ========================== //
344	function testimonial_1_content(){
345	jQuery('.testimonial-1-content').owlCarousel({
346		loop:true,
347		autoplay:false,
348		nav:true,
349		dots: false,	
350		margin:30,
351		navText: ['<i class="fa fa-long-arrow-left"></i>', '<i class="fa fa-long-arrow-right"></i>'],
352		responsive:{
353			0:{
354				items:1,
355			},
356			1400:{
357				items:1
358			}		
359		}
360	});
361	}
362	
363// Home page Testimonial Slider function by = owl.carousel.js ========================== //
364	function testimonial_2_content(){
365	jQuery('.testimonial-2-content').owlCarousel({
366		loop:true,
367		autoplay:false,
368		nav:true,
369		dots: false,	
370		margin:30,
371		navText: ['<i class="fa fa-long-arrow-left"></i>', '<i class="fa fa-long-arrow-right"></i>'],
372		responsive:{
373		
374			0:{
375				items:1,
376			},
377			1400:{
378				items:1
379			}					
380		}
381	});
382	}	
383	
384// Home page Testimonial Slider function by = owl.carousel.js ========================== //
385	function testimonial_3_content(){
386	jQuery('.testimonial-3-content').owlCarousel({
387		loop:true,
388		autoplay:false,
389		nav:false,
390		dots: true,	
391		margin:30,
392		navText: ['<i class="fa fa-long-arrow-left"></i>', '<i class="fa fa-long-arrow-right"></i>'],
393		responsive:{
394			0:{
395				items:1,
396			},
397			991:{
398				items:1,
399			},			
400			1400:{
401				items:2
402			}	
403		}
404	});
405	}		
406	
407// Gallery slider function by = owl.carousel.js ========================== //
408	function gallery_slider(){
409	jQuery('.gallery-slider').owlCarousel({
410		loop:true,
411		autoplay:false,
412		nav:true,
413		dots: false,	
414		margin:30,
415		navText: ['<i class="fa fa-chevron-left"></i>', '<i class="fa fa-chevron-right"></i>'],
416		responsive:{
417			0:{
418				items:1,
419			},
420			640:{
421				items:2,
422			},			
423			767:{
424				items:2,
425     		},				
426			991:{
427				items:3,
428			},
429			1024:{
430				items:3,
431			},	
432			
433			1200:{
434				items:4,
435			},					
436			1366:{
437				items:4,
438			},			
439			1400:{
440				items:5
441			}		
442		}
443	});
444	}	
445	
446	
447// Gallery slider function by = owl.carousel.js ========================== //
448	function gallery_slider2(){
449	jQuery('.gallery-slider2').owlCarousel({
450		loop:true,
451		autoplay:true,
452		nav:false,
453		dots: true,	
454		margin:30,
455		navText: ['<i class="fa fa-chevron-left"></i>', '<i class="fa fa-chevron-right"></i>'],
456		responsive:{
457			0:{
458				items:1,
459			},
460			640:{
461				items:2,
462			},			
463			767:{
464				items:2,
465     		},				
466			991:{
467				items:3,
468			},
469			1024:{
470				items:3,
471			}
472		}
473	});
474	}	
475	
476	
477// Project slider function by = owl.carousel.js ========================== //
478	function project_detail_slider(){
479	jQuery('.project-detail-slider').owlCarousel({
480		loop:true,
481		autoplay:false,
482		nav:true,
483		dots: false,	
484		margin:30,
485		navText: ['<i class="fa fa-chevron-left"></i>', '<i class="fa fa-chevron-right"></i>'],
486		responsive:{
487			0:{
488				items:1,
489			}
490		}
491	});
492	}		
493	
494
495
496//  home_client_carouse function by = owl.carousel.js ========================== //
497	function home_client_carousel_2(){
498	jQuery('.home-client-carousel-2').owlCarousel({
499		loop:true,
500		nav:false,
501		dots: false,				
502		margin:10,
503		autoplay:true,
504		navText: ['<i class="fa fa-angle-left"></i>', '<i class="fa fa-angle-right"></i>'],
505		responsive:{
506			0:{
507				items:2,
508			},
509			480:{
510				items:3,
511			},			
512			767:{
513				items:4,
514			},
515			1000:{
516				items:6
517			}
518		}
519	});
520	}	
521	
522
523// > Home_project_slider Full Screen with no margin function by = owl.carousel.js ========================== //
524	function home3_projects_slider(){
525		
526		var owl = jQuery('.h2-project-slider').owlCarousel({
527		loop:false,
528		autoplay:true,
529		margin:20,
530		nav:false,
531		dots: true,
532		navText: ['<i class="fa fa-angle-left"></i>', '<i class="fa fa-angle-right"></i>'],
533		responsive:{
534			0:{
535				items:1
536			},
537			480:{
538				items:1
539			},
540			580:{
541				items:1
542			},						
543			767:{
544				items:2
545			},
546			991:{
547				items:3
548			},			
549			1152:{
550				items:3
551			},
552			1360:{
553				items:3
554			},
555			1366:{
556				items:3
557			}	
558		    }
559		})	
560	}
561		
562
563	//  Counter Section function by = counterup.min.js
564	function counter_section(){
565		jQuery('.counter').counterUp({
566			delay: 10,
567			time: 3000
568		});	
569	}	
570	
571	//  MAKE AN APPOINTMENT Section function by = counterup.min.js
572	function contact_slide(){
573	jQuery('.contact-slide-show').on('click', function () {	
574		jQuery('.contact-slide-hide').animate({'right': '0%'});
575	});
576	jQuery('.contact_close').on('click', function () {	
577		jQuery('.contact-slide-hide').animate({'right': '-100%'});
578	});		
579	}	
580	
581	
582//menu navigation 
583
584	function menu_navigation(){
585    jQuery(".menu-btn").on('click', function () {
586        jQuery(".full-menu").fadeIn(500);
587    });
588    jQuery('.full-menu-close').on('click', function () {
589        jQuery(".full-menu").fadeToggle(500);
590    });
591	}
592		
593	jQuery('.nav-tabs a').on('click', function() {
594		e.preventDefault();
595		jQuery(this).tab('show');
596	});
597	
598	jQuery('.wt-accordion a').on('click', function() {
599		e.preventDefault();
600		jQuery(this).tab('show');
601	});	
602
603/*--------------------------------------------------------------------------------------------
604	Window on load ALL FUNCTION START
605---------------------------------------------------------------------------------------------*/
606
607
608	// > masonry function function by = isotope.pkgd.min.js ========================= //	
609	function masonryBox() {
610        if ( jQuery().isotope ) {      
611            var $container = jQuery('.masonry-wrap');
612                $container.isotope({
613                    itemSelector: '.masonry-item',
614                    transitionDuration: '1s',
615					originLeft: true,
616					stamp: '.stamp'
617                });
618
619            jQuery('.masonry-filter li').on('click',function() {                           
620                var selector = jQuery(this).find("a").attr('data-filter');
621                jQuery('.masonry-filter li').removeClass('active');
622                jQuery(this).addClass('active');
623                $container.isotope({ filter: selector });
624                return false;
625            });
626    	}
627	}		
628	
629
630// > background image parallax function by = stellar.js ==================== //	
631	function bg_image_stellar(){
632		jQuery(function(){
633				jQuery.stellar({
634					horizontalScrolling: false,
635					verticalOffset:100
636				});
637			});			
638	}	
639
640// > page loader function by = custom.js ========================= //		
641	function page_loader() {
642		$('.loading-area').fadeOut(1000);
643	}
644
645/*--------------------------------------------------------------------------------------------
646    Window on scroll ALL FUNCTION START
647---------------------------------------------------------------------------------------------*/
648
649    function color_fill_header() {
650        var scroll = $(window).scrollTop();
651        if(scroll >= 100) {
652            $(".is-fixed").addClass("color-fill");
653        } else {
654            $(".is-fixed").removeClass("color-fill");
655        }
656    }
657	
658	// Bootstrap Select box function by  = bootstrap-select.min.js
659	function Bootstrap_Select(){
660			if(jQuery.fn.selectpicker){ jQuery('.selectpicker').selectpicker(); }
661		}
662
663/*--------------------------------------------------------------------------------------------
664	document.ready ALL FUNCTION START
665---------------------------------------------------------------------------------------------*/
666	jQuery(document).ready(function() {
667		// > Top Search bar Show Hide function by = custom.js  		
668		site_search(),	
669		//menu navigation
670		menu_navigation(),
671		// > Video responsive function by = custom.js 
672		video_responsive(),
673		// > magnificPopup function	by = magnific-popup.js
674		magnific_popup(),
675		// > magnificPopup for video function	by = magnific-popup.js
676		magnific_video(),
677		// > Vertically center Bootstrap modal popup function by = custom.js
678		popup_vertical_center();
679		// > Main menu sticky on top  when scroll down function by = custom.js		
680		sticky_header(),
681	    // > Sidebar sticky  when scroll down function by = custom.js ========== //		
682	    sticky_sidebar(),		
683		// > page scroll top on button click function by = custom.js	
684		scroll_top(),
685		// > input type file function by = custom.js	 	
686		input_type_file_form(),
687		// > input Placeholder in IE9 function by = custom.js		
688		placeholderSupport(),
689		// > footer fixed on bottom function by = custom.js	
690		footer_fixed(),
691		// > accordion active calss function by = custom.js ========================= //			
692		accordion_active(),
693	    // > My Account Nav submenu show hide on mobile by = custom.js
694	    Submenu_toogle_adminnav(),				
695		// > Nav submenu on off function by = custome.js ===================//
696		mobile_nav(),
697		// Mobile side drawer function by = custom.js
698		mobile_side_drawer(),
699		// Gallery slider function by = owl.carousel.js ========================== //
700	    gallery_slider2(),
701		// Project slider function by = owl.carousel.js ========================== //
702		project_detail_slider(),		
703		// Home page visited place function by = owl.carousel.js ========================== //
704		services_slider(),
705		// Home page how-we-work function by = owl.carousel.js ========================== //
706	    how_we_work(),	
707        // Home page Project Slider function by = owl.carousel.js ========================== //
708        project_1_slider(),
709        // featured products Slider function by = owl.carousel.js ========================== //
710	    featured_products(),
711		// > TouchSpin box function by  = jquery.bootstrap-touchspin.js =============== // 
712		input_number_vertical_form(),		
713		// Home page Testimonial Slider function by = owl.carousel.js ========================== //
714	    testimonial_1_content(),
715		// Home page Testimonial Slider function by = owl.carousel.js ========================== //
716		testimonial_2_content(),
717        // Home page Testimonial Slider function by = owl.carousel.js ========================== //
718	    testimonial_3_content(),
719		// Gallery slider function by = owl.carousel.js ========================== //
720		gallery_slider(),		
721		//  Client logo Carousel function by = owl.carousel.js ========================== //
722		home_client_carousel_2(),
723		// > Home_project_slider Full Screen with no margin function by = owl.carousel.js ========================== //
724	    home3_projects_slider(),
725		//  Counter Section function by = counterup.min.js ========================== //
726		counter_section(),
727		//  MAKE AN APPOINTMENT Section function by = counterup.min.js
728		contact_slide()	;
729				
730	}); 	
731
732/*--------------------------------------------------------------------------------------------
733	Window Load START
734---------------------------------------------------------------------------------------------*/
735	jQuery(window).on('load', function () {
736		// Bootstrap Select box function by  = bootstrap-select.min.js
737		 Bootstrap_Select(),		
738		// > masonry function function by = isotope.pkgd.min.js		
739		masonryBox(),
740		// > background image parallax function by = stellar.js	
741		bg_image_stellar(),
742		// > page loader function by = custom.js		
743		page_loader();
744});
745
746 /*===========================
747	Window Scroll ALL FUNCTION START
748===========================*/
749
750	jQuery(window).on('scroll', function () {
751	// > Window on scroll header color fill 
752		color_fill_header();
753	});
754	
755/*===========================
756	Window Resize ALL FUNCTION START
757===========================*/
758
759	jQuery(window).on('resize', function () {
760	// > footer fixed on bottom function by = custom.js		 
761	 	footer_fixed();
762	});
763
764/*===========================
765	Document on  Submit FUNCTION START
766===========================*/
767
768	// > Contact form function by = custom.js	
769	jQuery(document).on('submit', 'form.cons-contact-form', function(e){
770		e.preventDefault();
771		var form = jQuery(this);
772		/* sending message */
773		jQuery.ajax({
774			url: 'http://thewebmax.com/industro/form-handler2.php',
775			data: form.serialize() + "&action=contactform",
776			type: 'POST',
777			dataType: 'JSON',
778			beforeSend: function() {
779				jQuery('.loading-area').show();
780			},
781
782			success:function(data){
783				jQuery('.loading-area').hide();
784				if(data['success']){
785				jQuery("<div class='alert alert-success'>"+data['message']+"</div>").insertBefore('form.cons-contact-form');
786				}else{
787				jQuery("<div class='alert alert-danger'>"+data['message']+"</div>").insertBefore('form.cons-contact-form');	
788				}
789			}
790		});
791		jQuery('.cons-contact-form').trigger("reset");
792		return false;
793	});
794	
795	
796		
797
798/*===========================
799	Document on  Submit FUNCTION END
800===========================*/	
801
802
803	
804	
805	
806})(window.jQuery);
807
808
809function validateCatalogForm()
810 {
811	var name = document.forms["subFrm"]["name"].value;
812	var cmpname = document.forms["subFrm"]["company"].value;
813    var phone = document.forms["subFrm"]["phone"].value;
814	var email = document.forms["subFrm"]["email"].value;
815	var captcha = document.forms["subFrm"]["g-recaptcha-response"].value;
816	var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
817	if(name=='')
818	{
819	 document.getElementById("errmsg").innerHTML="Please Enter Your Name";
820	 document.forms["subFrm"]["name"].focus();
821	 return false;
822	}
823	if (!/^[a-zA-Z][a-zA-Z\\s ]+$/g.test(name)) {
824		document.getElementById("errmsg").innerHTML="Name Have Invalid Charecter";
825         document.forms["subFrm"]["name"].focus();
826        return false;
827    }else{
828		document.getElementById("errmsg").innerHTML="";
829		}
830	if(cmpname=='')
831	{
832	 document.getElementById("errmsg").innerHTML="Please Enter Company Name";
833	 document.forms["subFrm"]["company"].focus();
834	 return false;
835	}
836	else{
837		document.getElementById("errmsg").innerHTML="";
838		}
839
840	if(phone=='')
841	{
842	 document.getElementById("errmsg").innerHTML="Please Enter Your Phone";
843	 document.forms["subFrm"]["phone"].focus();
844	 return false;
845	}
846	else{
847		document.getElementById("errmsg").innerHTML="";
848		}
849	if(phone!="")
850	{
851		if(isNaN(phone)||phone.indexOf(" ")!=-1)
852		{
853		document.getElementById("errmsg").innerHTML="Phone number Should Be Numeric";
854		document.forms["subFrm"]["phone"].focus();
855		return false;
856		}
857		else{
858		document.getElementById("errmsg").innerHTML="";
859		}
860 	}	if(email=='')
861	{
862	 document.getElementById("errmsg").innerHTML="Please Enter Your Email";
863	  document.forms["subFrm"]["email"].focus();
864	 return false;
865	}else{
866		document.getElementById("errmsg").innerHTML="";
867		}
868    if (!filter.test(email)) {
869    document.getElementById("errmsg").innerHTML="Please Provide a Valid Email";
870     document.forms["subFrm"]["email"].focus();
871    return false;
872	}else{
873		document.getElementById("errmsg").innerHTML="";
874		}
875 	if(captcha=='')
876	{
877	 document.getElementById("errmsg").innerHTML="Please click on the reCAPTCHA box";
878	 document.forms["subFrm"]["g-recaptcha-response"].focus();
879	 return false;
880	}
881	else{
882		document.getElementById("errmsg").innerHTML="";
883		}
884 }
885 
886 
887 
888/*===========================
889	Top Bar Hide and Show
890===========================*/
891 
892$(function () {
893// $(window).scroll(function(){
894// var scroll = $(window).scrollTop();
895// if (scroll >= 50) {
896// $('#testdiv').hide()
897// }
898// else{
899// $('#testdiv').show();
900// }
901// });
902
903$(window).scroll(function(){
904	var scroll = $(window).scrollTop();
905	if (scroll >= 100) {
906	$('#hidediv').show()
907	}
908	else{
909	$('#hidediv').hide()
910	}
911	});
912})
913
914
915$(document).ready(function() {
916	// jQuery code
917
918	//////////////////////// Prevent closing from click inside dropdown
919    $(document).on('click', '.dropdown-menu', function (e) {
920      e.stopPropagation();
921    });
922    
923	
924}); // jquery end
925
926
927  

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.