diff --git a/index.html b/index.html index 878b5d3..ee4f0df 100644 --- a/index.html +++ b/index.html @@ -148,7 +148,7 @@ function esc(s){if(!s)return'';return s.replace(/&/g,'&').replace(/0?(t==='ok'?'grn':t==='err'?'red':'blu'):'blu');n.textContent=m;var c=document.getElementById('toasts');if(c){c.appendChild(n);setTimeout(function(){n.parentNode.removeChild(n)},2600)}} function sv(){try{localStorage.setItem('nv_t',JSON.stringify(tasks));localStorage.setItem('nv_h',JSON.stringify(habits));localStorage.setItem('nv_th',theme)}catch(e){}} -function ld(){try{var a=localStorage.getItem('nv_t');var b=localStorage.getItem('nv_h');var c=localStorage.getItem('nv_th');if(a)tasks=JSON.parse(a)||[];if(b)habits=JSON.parse(b)||[];if(c)theme=c}catch(e){tasks=[];habits=[];theme='system'}} +function ld(){try{var a=localStorage.getItem('nv_t');var b=localStorage.getItem('nv_h');var c=localStorage.getItem('nv_th');if(a)tasks=JSON.parse(a)||[];if(b)habits=JSON.parse(b)||[];if(c)theme=c}catch(e){tasks=[];habits=[];theme='system'}rp();} function at(){ var w=window.matchMedia('(prefers-color-scheme:dark)'),d=document.documentElement; @@ -432,7 +432,6 @@ document.getElementById('imp').addEventListener('change',function(e){ }; r.readAsText(f); }); -document.getElementById('imp').click(); var loaded=false; function ldDemo(){