From d5fd7f4b7e12a2c64a03b25a5af223f41a7d7f0f Mon Sep 17 00:00:00 2001 From: Dann Kra Date: Sun, 28 Jun 2026 21:49:07 +0000 Subject: [PATCH] fix: P0.1 Datei-Dialog entfernt, P0.2 rp() in ld() aufrufen --- index.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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(){