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:
parent
ad17303a03
commit
fae6cdef54
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user