pldoc/static/js/ui.js
function() {
            var target;
            $('a[href^="#"]').not('.pldoc-tab-wrapper .pldoc-link').on('click', function(event) {
                event.preventDefault();

                target = $(event.currentTarget).attr('href');

                $('html, body').stop().animate({
                    scrollTop: $(target).offset().top
                }, 1000, 'swing', function() {
                    Ui.sendFocus(target);
                });
            });
        }
function() {
            var target;
            $('a[href^="#"]').not('.pldoc-tab-wrapper .pldoc-link').on('click', function(event) {
                event.preventDefault();

                target = $(event.currentTarget).attr('href');

                $('html, body').stop().animate({
                    scrollTop: $(target).offset().top
                }, 1000, 'swing', function() {
                    Ui.sendFocus(target);
                });
            });
        }
function ( ) { var target ; $ ( 'a[href^="#"]' ) . not ( '.pldoc-tab-wrapper .pldoc-link' ) . on ( 'click' , function ( event ) { event . preventDefault ( ) ; target = $ ( event . currentTarget ) . attr ( 'href' ) ; $ ( 'html, body' ) . stop ( ) . animate ( { scrollTop : $ ( target ) . offset ( ) . top } , 1000 , 'swing' , function ( ) { Ui . sendFocus ( target ) ; } ) ; } ) ; }
smoothscroll to target links
smoothscroll to target links