mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2024-04-21 12:32:22 +00:00
edit js/ditto
This commit is contained in:
@@ -259,12 +259,10 @@ function router() {
|
||||
$('html, body').animate({
|
||||
scrollTop: $('#content').offset().top
|
||||
}, 200);
|
||||
console.log('no perc');
|
||||
} else {
|
||||
$('html, body').animate({
|
||||
scrollTop: ($('body').height()-$(window).height())*perc
|
||||
}, 200);
|
||||
console.log('perc');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user