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
373710ef00
commit
fb58b88766
@ -250,11 +250,6 @@ 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 !== '' ditto.save_progress && store.get('menu-progress') !== location.hash) {
|
|
||||||
store.set('menu-progress', location.hash);
|
|
||||||
store.set('page-progress', 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
if(location.hash !== '' || Boolean(perc)){
|
if(location.hash !== '' || Boolean(perc)){
|
||||||
if (ditto.save_progress && store.get('menu-progress') !== location.hash){
|
if (ditto.save_progress && store.get('menu-progress') !== location.hash){
|
||||||
$('html, body').animate({
|
$('html, body').animate({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user