fix: P0.1 Datei-Dialog entfernt, P0.2 rp() in ld() aufrufen
This commit is contained in:
+1
-2
@@ -148,7 +148,7 @@ function esc(s){if(!s)return'';return s.replace(/&/g,'&').replace(/</g,'<
|
||||
function fm(d){if(!d)return'';try{return new Date(d).toLocaleDateString('de-DE')}catch(e){return''}}
|
||||
function ts(m,t){var n=document.createElement('div');n.className='toast '+((t||'blu').length>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(){
|
||||
|
||||
Reference in New Issue
Block a user