1 $(document).ready(function() {
3 $('a[href^="#"]').on('click',function (e) {
6 var target = this.hash;
7 var $target = $(target);
9 $('html, body').stop().animate({
10 'scrollTop': $target.offset().top
11 }, 900, 'swing', function () {
12 window.location.hash = target;