mirror of
				https://github.com/dawidolko/Website-Templates.git
				synced 2025-10-31 08:23:12 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			441 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			441 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| $(document).ready(function(){
 | |
|    $('a.page-scroll').bind('click', function(event) {
 | |
|         var $anchor = $(this);
 | |
|         $('html, body').stop().animate({
 | |
| 			scrollTop: ($($anchor.attr('href')).offset().top) 
 | |
|         }, 1500, 'easeInOutExpo');
 | |
|         event.preventDefault();
 | |
|     });
 | |
| });
 | |
| 
 | |
| $('body').scrollspy({
 | |
|     target: '.navbar-fixed-top'
 | |
| })
 | |
| 
 | |
| $('.navbar-collapse ul li a').click(function() {
 | |
|     $('.navbar-toggle:visible').click();
 | |
| }); |