Move web content to dedicated content directory
This commit is contained in:
		
							
								
								
									
										51
									
								
								content/_archive/5.5/js/custom.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										51
									
								
								content/_archive/5.5/js/custom.js
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,51 @@ | ||||
| (function ($) { | ||||
|      | ||||
|     // Init Wow | ||||
|     wow = new WOW( { | ||||
|         animateClass: 'animated', | ||||
|         offset:       100 | ||||
|     }); | ||||
|     wow.init(); | ||||
|      | ||||
|     // Navigation scrolls | ||||
|     $('.navbar-nav li a').bind('click', function(event) { | ||||
|         $('.navbar-nav li').removeClass('active'); | ||||
|         $(this).closest('li').addClass('active'); | ||||
|         var $anchor = $(this); | ||||
|         var nav = $($anchor.attr('href')); | ||||
|         if (nav.length) { | ||||
|         $('html, body').stop().animate({				 | ||||
|             scrollTop: $($anchor.attr('href')).offset().top				 | ||||
|         }, 1500, 'easeInOutExpo'); | ||||
|          | ||||
|         event.preventDefault(); | ||||
|         } | ||||
|     }); | ||||
|      | ||||
|     // About section scroll | ||||
|     $(".overlay-detail a").on('click', function(event) { | ||||
|         event.preventDefault(); | ||||
|         var hash = this.hash; | ||||
|         $('html, body').animate({ | ||||
|             scrollTop: $(hash).offset().top | ||||
|         }, 900, function(){ | ||||
|             window.location.hash = hash; | ||||
|         }); | ||||
|     }); | ||||
|         | ||||
|     //jQuery to collapse the navbar on scroll | ||||
|     $(window).scroll(function() { | ||||
|         if ($(".navbar-default").offset().top > 50) { | ||||
|             $(".navbar-fixed-top").addClass("top-nav-collapse"); | ||||
|         } else { | ||||
|             $(".navbar-fixed-top").removeClass("top-nav-collapse"); | ||||
|         } | ||||
|     }); | ||||
|      | ||||
|     // Testimonials Slider | ||||
|     $('.bxslider').bxSlider({ | ||||
|       adaptiveHeight: true, | ||||
|       mode: 'fade' | ||||
|     }); | ||||
|      | ||||
| })(jQuery); | ||||
		Reference in New Issue
	
	Block a user