add hashchange animation

This commit is contained in:
ruanyf
2014-04-22 10:07:44 +08:00
parent ad17303a03
commit fae6cdef54
+1 -1
View File
@@ -197,7 +197,7 @@ function router() {
Prism.highlightElement(this);
});
if(path.indexOf('README') !== -1){
if(path.indexOf('README') === -1){
$('html, body').animate({
scrollTop: $('#content').offset().top
}, 200);