edit js/ditto

This commit is contained in:
ruanyf
2014-05-08 00:16:25 +08:00
parent f389f2af69
commit 135a4486a9
-2
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');
}
}