mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2025-05-24 18:32:22 +00:00
edit js/ditto
This commit is contained in:
parent
bba6860a08
commit
b96360ec89
@ -251,7 +251,7 @@ function router() {
|
|||||||
var perc = ditto.save_progress ? store.get('page-progress') || 0 : 0;
|
var perc = ditto.save_progress ? store.get('page-progress') || 0 : 0;
|
||||||
|
|
||||||
if(location.hash !== '' || Boolean(perc)){
|
if(location.hash !== '' || Boolean(perc)){
|
||||||
if (!Boolean(perc){
|
if (!Boolean(perc)){
|
||||||
$('html, body').animate({
|
$('html, body').animate({
|
||||||
scrollTop: $('#content').offset().top
|
scrollTop: $('#content').offset().top
|
||||||
}, 200);
|
}, 200);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user