PageSourceSearch

https://hmmghs.edu.bd/template/assets/js/custom.js

js hmmghs.edu.bd collected 2026-10-03 02:28:06 UTC 26,989 bytes, 989 lines download raw bytes

1/*-------------------------------------------------------------------------
2 * RENDIFY - Custom jQuery Scripts
3 * ------------------------------------------------------------------------
4
5	1.	Plugins Init
6	2.	Site Specific Functions
7	3.	Shortcodes
8	4.      Other Need Scripts (Plugins config, themes and etc)
9	
10-------------------------------------------------------------------------*/
11
12
13jQuery(document).ready(function($){
14	
15	
16/*------------------------------------------------------------------------*/
17/*	1.	Plugins Init
18/*------------------------------------------------------------------------*/
19
20
21/************** ToolTip *********************/
22
23	function toolTipInit() {
24	
25		$('.social-icons li a').tooltip({
26			placement: 'top'
27		});
28	}
29	
30	toolTipInit();
31
32
33/************** Tabs *********************/
34
35	$('#tabs').tab();
36
37
38/************** SuperFish Menu *********************/
39
40	function initSuperFish(){
41		
42		$(".sf-menu").superfish({
43			 delay:  50,
44			 autoArrows: true,
45			 animation:   {opacity:'show'}
46			 //cssArrows: true
47		});
48		
49		// Replace SuperFish CSS Arrows to Font Awesome Icons
50		$('nav > ul.sf-menu > li').each(function(){
51			$(this).find('.sf-with-ul').append('<i class="fa fa-angle-down"></i>');
52		});
53	}
54	
55	initSuperFish();
56
57
58
59/************** FlexSlider *********************/
60
61	$(window).load(function() {
62	    $('.flexslider').flexslider({
63	    	animation: "fade",
64	    	touch: true,
65	    	controlNav: false,
66	    	prevText: "&nbsp;",  
67			nextText: "&nbsp;" 
68	    });
69	});
70
71	$('.carousel').carousel({
72	  interval: 300
73	})
74
75
76
77/************** FancyBox *********************/
78	$(".fancybox").fancybox({
79		padding: 5,
80		titlePosition: 'over'
81	});
82
83
84
85/************** pSlider *********************/
86
87	$('#slider-testimonials').pSlider({
88        slider: $('#slider-testimonials ul li'),
89        visible: 1,
90        button: {
91            next: $('#slider-testimonials .next'),
92            prev: $('#slider-testimonials .prev')
93        }
94    });
95
96
97
98/************** mixitup *********************/
99    $('#Grid').mixitup({
100        effects: ['fade','grayscale'],
101        easing: 'snap',
102        transitionSpeed: 400
103    });
104	
105
106
107
108/*------------------------------------------------------------------------*/
109/*	2.	Site Specific Functions
110/*------------------------------------------------------------------------*/
111
112
113	$('.sub-menu').addClass('animated fadeInRight');
114
115
116
117
118/************** Responsive Navigation *********************/
119
120	$('.menu-toggle-btn').click(function(){
121        $('.responsive_menu').stop(true,true).slideToggle();
122    });
123
124	
125	$('.thumb-small-gallery').addClass('closed');
126	
127    $('.thumb-small-gallery').hover(function(){
128        var elem = $(this);
129        elem.removeClass('closed');
130        elem.css({opacity: 1});
131        $('.gallery-small-thumbs .closed').css({opacity: 0.7});
132    }, function(){
133        var elem = $(this);
134        elem.addClass('closed');
135        $('.gallery-small-thumbs .closed').css({opacity: 1});
136    });
137
138
139});
140
141
142jQuery.noConflict();
143jQuery(document).ready(function($){
144	
145	"use strict";
146	
147	Pace.on("done", function(){
148		$(".loader-wrapper").fadeOut(500);
149		$(".pace").remove();
150	});
151	
152	
153	
154	/* One page navigation */
155	$('.header-mean-wrapper #main-menu').onePageNav({
156		currentClass : 'current_page_item',
157		filter		 : ':not(.external)',
158		scrollSpeed  : 750,
159		scrollOffset : 80
160	});	
161	
162	/* Mean Menu for Mobile */
163	$('.header-mean-wrapper #main-menu').meanmenu({
164		meanMenuContainer :  $('#menu-container'),
165		meanRevealPosition:  'right',
166		meanScreenWidth   :  767
167	});
168
169	var isMobile = (navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)) || (navigator.userAgent.match(/iPad/i)) || (navigator.userAgent.match(/Android/i)) || (navigator.userAgent.match(/Blackberry/i)) || (navigator.userAgent.match(/Windows Phone/i)) ? true : false;
170	var $px, currentWidth;
171	
172	
173	/*Menu */
174	megaMenu();
175	function megaMenu() {
176		var screenWidth = $(document).width(),
177		containerWidth = $(".header .container").width(),
178		containerMinuScreen = (screenWidth - containerWidth)/2;
179		if( containerWidth == screenWidth ){
180
181			$("li.menu-item-megamenu-parent .megamenu-child-container").each(function(){
182
183				var ParentLeftPosition = $(this).parent("li.menu-item-megamenu-parent").offset().left,
184				MegaMenuChildContainerWidth = $(this).width();
185
186				if( (ParentLeftPosition + MegaMenuChildContainerWidth) > screenWidth ){
187					var SwMinuOffset = screenWidth - ParentLeftPosition;
188					var marginFromLeft = MegaMenuChildContainerWidth - SwMinuOffset;
189					var marginFromLeftActual = (marginFromLeft) + 25;
190					var marginLeftFromScreen = "-"+marginFromLeftActual+"px";
191					$(this).css('left',marginLeftFromScreen);
192				}
193
194			});
195		} else {
196
197			$("li.menu-item-megamenu-parent .megamenu-child-container").each(function(){
198				var ParentLeftPosition = $(this).parent("li.menu-item-megamenu-parent").offset().left,
199				MegaMenuChildContainerWidth = $(this).width();
200
201				if( (ParentLeftPosition + MegaMenuChildContainerWidth) > containerWidth ){
202					var marginFromLeft = ( ParentLeftPosition + MegaMenuChildContainerWidth ) - screenWidth;
203					var marginLeftFromContainer = containerMinuScreen + marginFromLeft + 20;
204
205					if( MegaMenuChildContainerWidth > containerWidth ){
206						var MegaMinuContainer	= ( (MegaMenuChildContainerWidth - containerWidth)/2 ) + 10;
207						var marginLeftFromContainerVal = marginLeftFromContainer - MegaMinuContainer;
208						marginLeftFromContainerVal = "-"+marginLeftFromContainerVal+"px";
209						$(this).css('left',marginLeftFromContainerVal);
210					} else {
211						marginLeftFromContainer = "-"+marginLeftFromContainer+"px";
212						$(this).css('left',marginLeftFromContainer);
213					}
214				}
215
216			});
217		}
218	}
219	
220	//Menu Hover Start
221	function menuHover() {
222		$("li.menu-item-depth-0,li.menu-item-simple-parent ul li" ).hover(function(){
223			//mouseover 
224			if( $(this).find(".megamenu-child-container").length  ){
225				$(this).find(".megamenu-child-container").stop().fadeIn('fast');
226			} else {
227				$(this).find("> ul.sub-menu").stop().fadeIn('fast');
228			}
229			
230		},function(){
231			//mouseout
232			if( $(this).find(".megamenu-child-container").length ){
233				$(this).find(".megamenu-child-container").stop(true, true).hide();
234			} else {
235				$(this).find('> ul.sub-menu').stop(true, true).hide(); 
236			}
237		});
238	
239	}
240	
241	//Mobile Menu
242	$("#dt-menu-toggle").click(function( event ){
243		event.preventDefault();
244		var $menu;
245		$menu = $("nav#main-menu").find("ul.menu:first");
246		$menu.slideToggle(function(){
247			$menu.css('overflow' , 'visible');
248			$menu.toggleClass('menu-toggle-open');
249		});
250	});
251	
252	$(".dt-menu-expand").click(function(event){
253		if( $(this).hasClass("dt-mean-clicked") ){
254			$(this).text("+");
255			if( $(this).prev('ul').length ) {
256				$(this).prev('ul').slideUp(400);
257			} else {
258				$(this).prev('.megamenu-child-container').find('ul:first').slideUp(600);
259			}
260		} else {
261			$(this).text("-");
262			if( $(this).prev('ul').length ) {
263				$(this).prev('ul').slideDown(400);
264			} else{
265				$(this).prev('.megamenu-child-container').find('ul:first').slideDown(2000);
266			}
267		}
268		
269		$(this).toggleClass("dt-mean-clicked");
270		return false;
271	});
272	
273	//Mobile Menu End
274	
275	//Smart Resize Start
276	$(window).smartresize(function(){
277		megaMenu();
278		/* Blog Template Isotope */
279		if( $(".apply-isotope").length ){
280			$(".apply-isotope").each(function(){
281				$(this).isotope({itemSelector : '.column',transformsEnabled:false,masonry: { gutterWidth: 25} });
282			});
283		}
284		
285		if( !isMobile ){
286			currentWidth = window.innerWidth || document.documentElement.clientWidth;
287			if( currentWidth > 767 ){
288				menuHover();
289			}
290		}	
291	});
292	
293	/* Goto Top */
294	$().UItoTop({ easingType: 'easeOutQuart' });
295	
296	/* Parallax Section */
297	$('.parallax').each(function(){
298		$(this).bind('inview', function (event, visible) {
299			if(visible == true) {
300				$(this).parallax("50%", 0.3);
301			} else {
302				$(this).css('background-position','');
303			}
304		});
305	});
306	
307	/* PrettyPhoto For Portfolio */
308	if($(".portfolio").length) {
309		$(".portfolio a[data-gal^='prettyPhoto']").prettyPhoto({animation_speed:'normal',theme:'light_square',slideshow:3000, autoplay_slideshow: false,social_tools: false,deeplinking:false});		
310	}
311	
312	
313	//Window Load Start
314	$(window).load(function(){
315		/* Template Isotope */
316		if( $(".apply-isotope").length ){
317			$(".apply-isotope").each(function(){
318				$(this).isotope({itemSelector : '.column',transformsEnabled:false,masonry: { gutterWidth: 25} });
319			});
320		}
321		//Portfolio isotope
322		var $container = $('.portfolio-container');
323		if( $container.length) {
324			
325			var $width = $container.hasClass("no-space") ? 0 : 20;
326	
327			$(window).smartresize(function(){
328				$container.css({overflow:'hidden'}).isotope({itemSelector : '.column',masonry: { gutterWidth: $width } });
329			});
330			
331			$container.isotope({
332			  filter: '*',
333			  masonry: { gutterWidth: $width },
334			  animationOptions: { duration: 750, easing: 'linear', queue: false  }
335			});
336		}
337		
338		if($("div.sorting-container").length){
339			$("div.sorting-container a").click(function(){
340				var $width = $container.hasClass("no-space") ? 0 : 20;				
341				$("div.sorting-container a").removeClass("active-sort");
342				var selector = $(this).attr('data-filter');
343				$(this).addClass("active-sort");
344				$container.isotope({
345					filter: selector,
346					masonry: { gutterWidth: $width },
347					animationOptions: { duration:750, easing: 'linear',  queue: false }
348				});
349			return false;	
350			});
351		}
352		//Portfolio isotope End
353	});	//Window Load End	
354
355	//Donutchart
356  	jQuery(".dt-sc-donutchart").each(function(){
357		var $this = jQuery(this);
358	 	var $bgColor =  ( $this.data("bgcolor") !== undefined ) ? $this.data("bgcolor") : "#f5f5f5";
359	 	var $fgColor =  ( $this.data("fgcolor") !== undefined ) ? $this.data("fgcolor") : "#000000";
360	 	var $size = ( $this.data("size") !== undefined ) ? $this.data("size") : "120";
361	 
362	 	$this.donutchart({'size': $size, 'fgColor': $fgColor, 'bgColor': $bgColor , 'donutwidth' : 10 });
363	 	$this.donutchart('animate');
364	});//Donutchart Shortcode Ends   
365	
366	/* Progress Bar */
367	 animateSkillBars();
368	 animateSection();
369	 $(window).scroll(function(){ 
370		animateSkillBars();
371		animateSection();
372	 });
373
374	 function animateSection(){
375		 var applyViewPort = ( jQuery("html").hasClass('csstransforms') ) ? ":in-viewport" : "";
376		 jQuery('.animate'+applyViewPort).each(function(){
377			var $this = jQuery(this),
378				$animation = ( $this.data("animation") !== undefined ) ? $this.data("animation") : "slideUp";
379			var	$delay = ( $this.data("delay") !== undefined ) ? $this.data("delay") : 300;
380
381			if( !$this.hasClass($animation) ){
382				setTimeout(function() { $this.addClass($animation);	},$delay);
383			}
384		 });
385	 }
386	 
387	 function animateSkillBars(){
388		 var applyViewPort = ( jQuery("html").hasClass('csstransforms') ) ? ":in-viewport" : "";
389		 jQuery('.dt-sc-progress'+applyViewPort).each(function(){
390			 var progressBar = jQuery(this),
391				 progressValue = progressBar.find('.dt-sc-bar').attr('data-value');
392				 
393				 if (!progressBar.hasClass('animated')) {
394						progressBar.addClass('animated');
395						progressBar.find('.dt-sc-bar').animate({width: progressValue + "%"},600,function(){ progressBar.find('.dt-sc-bar-text').fadeIn(400); });
396				 }
397		 });
398	}/* Progress Bar End */	
399	
400	//Window Load Start
401	$(window).load(function(){	
402		//*Testimonial Carousel*/
403		if( jQuery('.dt-sc-testimonial-carousel').length ) {
404			jQuery('.dt-sc-testimonial-carousel').each(function(){
405				var column = jQuery(this).data('column');
406				if(column != '') column = column; else column = 1;
407				jQuery(this).carouFredSel({
408					responsive:true,
409					auto:true,
410					width:'100%',
411					prev:'.testimonial-prev',
412					next:'.testimonial-next',
413					pagination:jQuery(this).parents(".dt-sc-testimonial-wrapper.type2").find(".pager"),
414					scroll:1,
415					items:{visible: {min: column}, height: 'variable'}
416				});
417			});
418		}
418/*Testimonial Carousel End*/
419		
420		//*Testimonial Carousel*/
421		if( jQuery('.dt-sc-partner-carousel').length ) {
422			jQuery('.dt-sc-partner-carousel').each(function(){
423				jQuery(this).carouFredSel({
424					responsive:true,
425					auto:true,
426					width:'100%',
427					height: 'variable',
428					prev: 'prev',
429					next: 'next',
430					scroll:1,
431					items:{visible: {min: 1, max: 5}, height: 'variable'}
432				});
433			});
434		} //*Testimonial Carousel End*/
435		
436		// Team Carousel
437		if( jQuery('.dt-sc-team-carousel').length) {
438			jQuery('.dt-sc-team-carousel').each(function(){
439				  var pagger = jQuery(this).parents(".dt-sc-team-carousel-wrapper").find("div.carousel-arrows"),
440					  next = pagger.find("a.next"),
441					  prev = pagger.find("a.prev");
442	
443				jQuery(this).carouFredSel({
444					  responsive:true,
445					  auto:false,
446					  width:'100%',
447					  height: 'variable',
448					  scroll:1,
449					  items:{
450						height: 'variable',
451						visible: {min: 1,max: 3} 
452					  },
453					  pagination:jQuery(this).parents(".dt-sc-team-carousel-wrapper.type2").find(".pager"),
454					  prev:prev,
455					  next:next
456				});
457	
458			});
459		}
460		
461		//*Product Carousel*/
462		if(jQuery('.feature-product-carousel').length) {
463			jQuery('.feature-product-carousel').carouFredSel({
464				responsive: true,
465				auto: false,
466				width: '100%',
467				height: 'variable',
468				prev: '.prev',
469				next: '.next',
470				scroll: 1,
471				items: { 
472				width: $(this).find('.column').width(),
473				height: 'variable',
474				visible: {
475				  min: 1,
476				  max: 4 }
477				}
478			});
479		} /*Product Carousel End*/
480		
481		//*Events Carousel*/
482		if(jQuery('.events-carousel').length) {
483			jQuery('.events-carousel').carouFredSel({
484				responsive: true,
485				auto: false,
486				width: '100%',
487				height: 'variable',
488				prev: '.event-prev',
489				next: '.event-next',
490				scroll: 1,
491				items: { 
492				width: $(this).find('.column').width(),
493				height: 'variable',
494				visible: {
495				  min: 1,
496				  max: 4 }
497				}
498			});
499		} /*Events Carousel End*/
500		
501		//*Events Carousel*/
502		if(jQuery('.portfolio-carousel').length) {
503			jQuery('.portfolio-carousel').carouFredSel({
504				responsive: true,
505				auto: false,
506				width: '100%',
507				height: 'variable',
508				prev: '.portfolio-prev',
509				next: '.portfolio-next',
510				scroll: 1,
511				items: { 
512				width: $(this).find('.column.no-space').width(),
513				height: 'variable',
514				visible: {
515				  min: 1,
516				  max: 3 }
517				}
518			});
519		} /*Events Carousel End*/
520		
521		//Reviews Carousel...
522		if($(".reviews-carousel-wrapper").length) {
523		  $('.reviews-carousel-wrapper').carouFredSel({
524			responsive: true,
525			width: '100%',
526			scroll: {
527				fx: "crossfade"
528			},
529			auto: {
530				pauseDuration: 5000,
531			},
532			items: {
533				height: 'variable',
534				visible: {
535					min: 1,
536					max: 1
537				}
538			}
539		  });
540		}
541		
542		if(jQuery('#tweets_container').length) {
543			jQuery('#tweets_container .tweet_list').carouFredSel({
544				width: 'auto',
545				height: 'auto',
546				scroll: {
547					duration: 1000
548				},
549				direction: 'up',
550				items: {
551					height: 'auto',
552					visible: {
553						min: 1,
554						max: 1
555					}
556				}
557			});
558		}
559		
560		//SLIDING BANNER...
561		if(jQuery('.slider-wrapper').length) {
562			jQuery('.slider-wrapper').each(function(){
563				var $this = jQuery(this).find('.main-slider');
564				$this.carouFredSel({
565					responsive: true,
566					auto: false,
567					width: '100%',
568					height: 'auto',
569					scroll: {
570						fx: "crossfade",
571						duration: 800
572					},
573					items: { width: $this.find("div.column").width(),  visible: { min: 1, max: 1 } },
574					pagination: {
575						container: ".slide-controls",
576						anchorBuilder: false
577					}
578				});
579			});		
580		}	
581	});
582	
583
584	
585	
586
587	//Accordion & Toggle
588	$('.dt-sc-toggle').toggle(function(){ $(this).addClass('active'); },function(){ $(this).removeClass('active'); });
589	$('.dt-sc-toggle').click(function(){ $(this).next('.dt-sc-toggle-content').slideToggle(); });
590	
591	$('.dt-sc-toggle-frame-set').each(function(){
592		var $this = $(this),
593		    $toggle = $this.find('.dt-sc-toggle-accordion');
594			
595			$toggle.click(function(){
596				if( $(this).next().is(':hidden') ) {
597					$this.find('.dt-sc-toggle-accordion').removeClass('active').next().slideUp();
598					$(this).toggleClass('active').next().slideDown();
599				}
600				return false;
601			});
602			
603			//Activate First Item always
604			$this.find('.dt-sc-toggle-accordion:first').addClass("active");
605			$this.find('.dt-sc-toggle-accordion:first').next().slideDown();
606  	});//Accordion & Toggle
607	
608	// Tabs Shortcodes
609	if ($("ul.dt-sc-tabs").length > 0) {
610		$("ul.dt-sc-tabs").tabs("> .dt-sc-tabs-content")
611	}
612	if ($("ul.dt-sc-tabs-frame").length > 0) {
613		$("ul.dt-sc-tabs-frame").tabs("> .dt-sc-tabs-frame-content")
614	}
615	if ($(".dt-sc-tabs-vertical-frame").length > 0) {
616		$(".dt-sc-tabs-vertical-frame").tabs("> .dt-sc-tabs-vertical-frame-content");
617		$(".dt-sc-tabs-vertical-frame").each(function() {
618			$(this).find("li:first").addClass("first").addClass("current");
619			$(this).find("li:last").addClass("last")
620		});
621		$(".dt-sc-tabs-vertical-frame li").click(function() {
622			$(this).parent().children().removeClass("current");
623			$(this).addClass("current")
624		})
625	} /*Tabs Shortcodes Ends*/
626	
627	//Recent gallery slider
628	if( $(".recent-gallery").find("li").length > 1 ) {
629		$(".recent-gallery").bxSlider({ auto:false, useCSS:false, pagerCustom: '#bx-pager', autoHover:true, adaptiveHeight:true });
630	} /*Recent gallery slider
631	
632	/*Tooltip*/
633	 if(jQuery(".dt-sc-tooltip-bottom").length){
634		jQuery(".dt-sc-tooltip-bottom").each(function(){ jQuery(this).tipTip({maxWidth: "auto"}); });
635	 }
636	  
637	 if(jQuery(".dt-sc-tooltip-top").length){
638		jQuery(".dt-sc-tooltip-top").each(function(){ jQuery(this).tipTip({maxWidth: "auto",defaultPosition: "top"}); });
639	 }
640	  
641	 if(jQuery(".dt-sc-tooltip-left").length){
642		jQuery(".dt-sc-tooltip-left").each(function(){ jQuery(this).tipTip({maxWidth: "auto",defaultPosition: "left"}); });
643	 }
644	  
645	 if(jQuery(".dt-sc-tooltip-right").length){
646		jQuery(".dt-sc-tooltip-right").each(function(){ jQuery(this).tipTip({maxWidth: "auto",defaultPosition: "right"}); });
647	 }/*Tooltip End*/
648	
649	 // animate css + jquery inview configuration
650	 $(".animate").each(function () {
651		$(this).bind('inview', function (event, visible) {
652			var $delay = "";
653			var $this = $(this),
654				$animation = ($this.data("animation") !== undefined) ? $this.data("animation") : "slideUp";
655			$delay = ($this.data("delay") !== undefined) ? $this.data("delay") : 300;
656
657			if (visible === true) {
658				   setTimeout(function () { $this.addClass($animation); }, $delay);
659		   } else {
660				   setTimeout(function() { $this.removeClass('animate'); } );
661		   }
662		});
663	});
664	
665	if($().validate) {
666	
667		//AJAX CONTACT FORM...
668		$('form[name="frmcontact"]').submit(function () {
669			var This = $(this);
670			if($(This).valid()) {
671				var action = $(This).attr('action');
672				var data_value = unescape($(This).serialize());
673				$.ajax({
674					 type: "POST",
675					 url:action,
676					 data: data_value,
677					 error: function (xhr, status, error) {
678						 confirm('The page save failed.');
679					   },
680					  success: function (response) {
681						$('#ajax_contact_msg').html(response);
682						$('#ajax_contact_msg').slideDown('slow');
683					 }
684				});
685			}
686			return false;
687		});
688		
689		$('form[name="frmcontact"]').validate({
690			rules: { 
691				txtname: { required: true },
692				txtemail: { required: true, email: true },
693				txtmessage: { required: true }
694			},
695			errorPlacement: function(error, element) { }
696		});	
697		
698		$('form[name="frmRegister"]').validate({
699			rules: { 
700				f_user: { required: true },
701				email: { required: true, email: true },
702				pwd: { required: true },
703				c_pwd: { required: true }
704			},
705			errorPlacement: function(error, element) { }
706		});	
707		
708		$('form[name="frmLogin"]').validate({
709			rules: { 
710				user: { required: true },
711				pwd: { required: true },
712			},
713			errorPlacement: function(error, element) { }
714		});	
715	
716		//AJAX SUBSCRIBE FORM...
717		$('form[name="frmNewsletter"]').submit(function () {
718			var This = $(this);
719			if($(This).valid()) {
720				var action = $(This).attr('action');
721				var data_value = unescape($(This).serialize());
722				$.ajax({
723					 type: "POST",
724					 url:action,
725					 data: data_value,
726					 error: function (xhr, status, error) {
727						 confirm('The page save failed.');
728					   },
729					  success: function (response) {
730						$('#ajax_newsletter_msg').html(response);
731						$('#ajax_newsletter_msg').slideDown('slow');
732						if (response.match('success') != null) $(This).slideUp('slow');
733					 }
734				});
735			}
736			return false;
737		});
738		
739		$('form[name="frmNewsletter"]').validate({
740			rules: { 
741				email: { required: true, email: true }
742			},
743			errorPlacement: function(error, element) { }
744		});
745		
746		if($('form[name="frmNewsletterContent"]').length) {
747			$('form[name="frmNewsletterContent"]').submit(function () {
748				var This = $(this);
749				if($(This).valid()) {
750					var action = $(This).attr('action');
751					var data_value = unescape($(This).serialize());
752					$.ajax({
753						 type: "POST",
754						 url:action,
755						 data: data_value,
756						 error: function (xhr, status, error) {
757							 confirm('The page save failed.');
758						   },
759						  success: function (response) {
760							$('#ajax_newsletter_msg_content').html(response);
761							$('#ajax_newsletter_msg_content').slideDown('slow');
762							if (response.match('success') != null) $(This).slideUp('slow');
763						 }
764					});
765				}
766				return false;
767			});
768			
769			$('form[name="frmNewsletterContent"]').validate({
770				rules: { 
771					email: { required: true, email: true }
772				},
773				errorPlacement: function(error, element) { }
774			});
775		}
776	
777	}
778	
779	var j = 1;
780	$('.blog-load-more').click(function(e){
781	
782		if(j == 3) {
783			$('.blog-load-more').text('No more posts to load!').css({"cursor":"default"});
784		} else {
785
786			$.ajax({
787				type: "POST",
788				url: "contents/blog-content-"+j+".html",
789				dataType: "html",
790				cache: false,
791				msg : '',
792				beforeSend: function(){
793					$('.blog-load-more').html('Loading...');
794				},
795				success: function(msg){
796					$('.blog-items').append(msg);
797					$('.blog-items').isotope( 'reloadItems' ).isotope();
798				},
799				complete: function(){
800					if(j == 2) {
801						$('.blog-load-more').text('No more posts to load!').css({"cursor":"default"});
802					} else {
803						$('.blog-load-more').text('Load More').css({"cursor":"pointer"});
804					}
805					j++;
806				} 
807			});
808			
809		}
810		e.preventDefault();
811		
812	});
813	
814	var j = 1;
815	$('.portfolio-load-more').click(function(e){
816	
817		var column = 'four';
818		if($('.portfolio-container').find('.portfolio').hasClass('dt-sc-one-fourth')) column = 'four';
819		else if($('.portfolio-container').find('.portfolio').hasClass('dt-sc-one-third')) column = 'three';
820		else if($('.portfolio-container').find('.portfolio').hasClass('dt-sc-one-half')) column = 'two';
821		else if($('.portfolio-container').find('.portfolio').hasClass('dt-sc-one-column')) column = 'one';
822		
823		if(j == 3) {
824			$('.portfolio-load-more').text('No more posts to load!').css({"cursor":"default"});
825		} else {
826
827			$.ajax({
828				type: "POST",
829				url: "contents/portfolio-content-"+column+"-"+j+".html",
830				dataType: "html",
831				cache: false,
832				msg : '',
833				beforeSend: function(){
834					$('.portfolio-load-more').html('Loading...');
835				},
836				success: function(msg){
837					$('.portfolio-container').append(msg);
838					$('.portfolio-container').isotope( 'reloadItems' ).isotope();
839				},
840				complete: function(){
841					if(j == 2) {
842						$('.portfolio-load-more').text('No more posts to load!').css({"cursor":"default"});
843					} else {
844						$('.portfolio-load-more').text('Load More').css({"cursor":"pointer"});
845					}
846					j++;
847				} 
848			});
849			
850		}
851		e.preventDefault();
852		
853	});
854	
855	$('.plus').click(function(e){
856		e.preventDefault();
857		var currentVal = parseInt($(this).parents('.quantity').find('input[name="quantity"]').val());
858		if (!isNaN(currentVal)) {
859			$(this).parents('.quantity').find('input[name="quantity"]').val(currentVal + 1);
860		} else {
861			$(this).parents('.quantity').find('input[name="quantity"]').val(0);
862		}
863	});
864
865	$(".minus").click(function(e) {
866		e.preventDefault();
867		var currentVal = parseInt($(this).parents('.quantity').find('input[name="quantity"]').val());
868		if (!isNaN(currentVal) && currentVal > 0) {
869			$(this).parents('.quantity').find('input[name="quantity"]').val(currentVal - 1);
870		} else {
871			$(this).parents('.quantity').find('input[name="quantity"]').val(0);
872		}
873	});
874	
875	if($( "#priceslider" ).length) {
876		$( "#priceslider" ).slider({
877			range: true,
878			min: 0,
879			max: 500,
880			values: [ 75, 300 ],
881			slide: function( event, ui ) {
882				$( "#priceslider-from" ).html( "$" + ui.values[ 0 ] + ".00" );
883				$( "#priceslider-to" ).html( "$" + ui.values[ 1 ] + ".00" );
884			}
885		});
886	}
887	
888	if($(".show-box").length) {
889		$(".show-box").click( function() {
890			if($(this).parent().find('.search-form-box').hasClass('hidden'))
891				$(this).parent().find('.search-form-box').removeClass('hidden');
892			else
893				$(this).parent().find('.search-form-box').addClass('hidden');
894		});
895	}
896	
897	$(document).click(function(ev){
898
899		var myID = ev.target.id,
900			myClass = ev.target.className;
901		
902		if((myClass !='fa fa-search' ) && (myClass !='show-box' ) && myID !='search-box'){
903			$( '.search-form-box' ).addClass('hidden');
904		}
905		
906	});
907	
908	//ANIMATE NUMBER...
909	$('.dt-sc-num-count').each(function(){
910	  $(this).one('inview', function (event, visible) {
911		  if(visible === true) {
912			  var val = $(this).attr('data-value');
913			  $(this).animateNumber({ number: val	}, 2000);
914		  }
915	  });
916	});
917	
918	/* Reservation Popup */
919	$("a[data-gal^='prettyPhoto[reservation]']").prettyPhoto({ 
920		overlay_gallery: false, 
921		social_tools: false,
922		deeplinking: false,
923		default_width: 800,
924	});
925	
926	//BMI Form Validation...
927	$('form[name="frmbmi"]').validate({
928		rules: { 
929			txtfeet: { required: true },
930			txtinches: { required: true },
931			txtlbs: { required: true }
932		},
933		errorPlacement: function(error, element) { }
934	});
935
936	//BMI Calculation...
937	$('form[name="frmbmi"]').submit(function(){
938		var This = $(this);
939		if($(This).valid()) {
940			var fet = $('input[name="txtfeet"]').val();
941			var inc = $('input[name="txtinches"]').val();
942			var tinc = ( parseInt(fet) * 12 ) + parseInt(inc);
943			
944			var lbs = $('input[name="txtlbs"]').val();
945			
946			var bmi = ( parseFloat(lbs) / (tinc * tinc) ) * 703;
947			
948			$('input[name="txtbmi"]').val(parseFloat(bmi).toFixed(1));
949		}
950		return false;
951	});
952	
953	//BMI View...
954	if($("a.fancyInline").length) {
955		$("a.fancyInline").fancybox({
956			scrolling: 'no',
957			width: 'auto',
958			height: 'auto'
959		});
960	}
961		
962});
963
964	//MeanMenu Custom Scroll...
965	function funtoScroll(x, e) {
966		"use strict";
967		var str = new String(e.target);
968		var pos = str.indexOf('#');
969		var t = str.substr(pos);
970		
971		var eleclass = jQuery(e.target).prop("class");
972		
973		if(eleclass == "external") {
974			window.location.href = e.target;	
975		} else {
976			jQuery.scrollTo(t, 750, { offset: { top: -53 }});
977		}
978		
979		jQuery(x).parent('.mean-bar').next('.mean-push').remove();		
980		jQuery(x).parent('.mean-bar').remove();
981	
982		jQuery('nav#main-menu').meanmenu({
983			meanMenuContainer :  jQuery('#menu-container'),
984			meanRevealPosition:  'right',
985			meanScreenWidth   :  767	
986		});
987		
988		e.preventDefault();
989	}(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.