mirror of https://github.com/Icinga/icinga2.git
17 lines
361 B
JavaScript
17 lines
361 B
JavaScript
|
$(document).ready(function() {
|
||
|
|
||
|
$('a[href^="#"]').on('click',function (e) {
|
||
|
e.preventDefault();
|
||
|
|
||
|
var target = this.hash;
|
||
|
var $target = $(target);
|
||
|
|
||
|
$('html, body').stop().animate({
|
||
|
'scrollTop': $target.offset().top
|
||
|
}, 900, 'swing', function () {
|
||
|
window.location.hash = target;
|
||
|
});
|
||
|
});
|
||
|
|
||
|
});
|