1
0
mirror of https://github.com/ruanyf/es6tutorial.git synced 2025-05-29 05:42:20 +00:00

add hashchange animation

This commit is contained in:
ruanyf 2014-04-22 10:07:44 +08:00
parent ad17303a03
commit fae6cdef54

View File

@ -197,7 +197,7 @@ function router() {
Prism.highlightElement(this); Prism.highlightElement(this);
}); });
if(path.indexOf('README') !== -1){ if(path.indexOf('README') === -1){
$('html, body').animate({ $('html, body').animate({
scrollTop: $('#content').offset().top scrollTop: $('#content').offset().top
}, 200); }, 200);