mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2025-05-24 18:32:22 +00:00
add hashchange animation
This commit is contained in:
parent
0981b07f0b
commit
ad17303a03
@ -197,9 +197,11 @@ function router() {
|
|||||||
Prism.highlightElement(this);
|
Prism.highlightElement(this);
|
||||||
});
|
});
|
||||||
|
|
||||||
$('html, body').animate({
|
if(path.indexOf('README') !== -1){
|
||||||
scrollTop: $('#content').offset().top
|
$('html, body').animate({
|
||||||
}, 200);
|
scrollTop: $('#content').offset().top
|
||||||
|
}, 200);
|
||||||
|
}
|
||||||
|
|
||||||
}).fail(function() {
|
}).fail(function() {
|
||||||
show_error();
|
show_error();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user