]> granicus.if.org Git - icinga2/blob - doc/scroll.js
Documentation: add missing argument to chkconfig command.
[icinga2] / doc / scroll.js
1 $(document).ready(function() {
2
3     $('a[href^="#"]').on('click',function (e) {
4         e.preventDefault();
5
6         var target = this.hash;
7         var $target = $(target);
8
9         $('html, body').stop().animate({
10         'scrollTop': $target.offset().top
11         }, 900, 'swing', function () {
12         window.location.hash = target;
13         });
14     });
15
16 });