1
0
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:
ruanyf 2014-05-08 00:16:25 +08:00
parent f389f2af69
commit 135a4486a9

View File

@ -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');
}
}