mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2025-05-24 10:22:23 +00:00
edit js/ditto
This commit is contained in:
parent
f389f2af69
commit
135a4486a9
@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user