diff --git a/js/ditto.js b/js/ditto.js index fd74623..97a5cc2 100644 --- a/js/ditto.js +++ b/js/ditto.js @@ -197,9 +197,11 @@ function router() { Prism.highlightElement(this); }); - $('html, body').animate({ - scrollTop: $('#content').offset().top - }, 200); + if(path.indexOf('README') !== -1){ + $('html, body').animate({ + scrollTop: $('#content').offset().top + }, 200); + } }).fail(function() { show_error();