diff --git a/index.html b/index.html index 7672694..4f6deb7 100644 --- a/index.html +++ b/index.html @@ -1214,7 +1214,7 @@ function closeModal(){ document.getElementById("modal").style.display="none" } -function switchEvMonthBtn(id,m,subIdx){var inn=document.getElementById("evn_"+id);var subSuffix=curSub!==null?"_s"+curSub:"";if(inn)try{localStorage.setItem("sn_"+id+subSuffix+"_m"+m,inn.value.trim())}catch(e){}try{localStorage.setItem("evmonth_"+id,m.toString())}catch(e){}openEv(id,subIdx!==null?subIdx:undefined)} +function switchEvMonthBtn(id,m,subIdx){var inn=document.getElementById("evn_"+id);var curM=localStorage.getItem("evmonth_"+id)||"0";var subSuffix=curSub!==null?"_s"+curSub:"";if(inn)try{localStorage.setItem("sn_"+id+subSuffix+"_m"+curM,inn.value.trim())}catch(e){}try{localStorage.setItem("evmonth_"+id,m.toString())}catch(e){}openEv(id,subIdx!==null?subIdx:undefined)} function switchEvMonth(id,subIdx){var inm=document.getElementById("evm_"+id);if(!inm)return;var mv=inm.value;var inn=document.getElementById("evn_"+id);var subSuffix=curSub!==null?"_s"+curSub:"";if(inn)try{localStorage.setItem("sn_"+id+subSuffix+"_m"+mv,inn.value.trim())}catch(e){}try{localStorage.setItem("evmonth_"+id,mv)}catch(e){}openEv(id,subIdx!==null?subIdx:undefined)} function saveEvModal(id){var sel=document.getElementById("evs_"+id);for(var i=0;i