mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2025-05-25 03:02:21 +00:00
edit js/ditto
This commit is contained in:
parent
f389f2af69
commit
135a4486a9
@ -259,12 +259,10 @@ function router() {
|
|||||||
$('html, body').animate({
|
$('html, body').animate({
|
||||||
scrollTop: $('#content').offset().top
|
scrollTop: $('#content').offset().top
|
||||||
}, 200);
|
}, 200);
|
||||||
console.log('no perc');
|
|
||||||
} else {
|
} else {
|
||||||
$('html, body').animate({
|
$('html, body').animate({
|
||||||
scrollTop: ($('body').height()-$(window).height())*perc
|
scrollTop: ($('body').height()-$(window).height())*perc
|
||||||
}, 200);
|
}, 200);
|
||||||
console.log('perc');
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user