Escudo
Ministerio de Educación · UGEL N° 05

Registro GRD & Salud Escolar

Servicio de Asistencia Técnica y Acompañamiento en GRD y Salud Escolar en las II.EE. — Red 09 al 12
 

Pendiente

'; var blob = new Blob(['\ufeff', html], {type:'application/msword;charset=utf-8'}); var a = document.createElement("a"); a.href = URL.createObjectURL(blob); a.download = "Informe_Tecnico_Semanal_UGEL05_" + toKey(dates[0]) + ".doc"; document.body.appendChild(a); a.click(); document.body.removeChild(a); showToast("Informe generado"); }); } /* ======================= Toast ======================= */ var toastEl = document.getElementById("toast"); var toastTimer = null; function showToast(msg){ toastEl.textContent = msg; toastEl.classList.add("show"); clearTimeout(toastTimer); toastTimer = setTimeout(function(){ toastEl.classList.remove("show"); }, 2400); } /* ======================= Init ======================= */ openDB().then(function(_db){ db = _db; idbGet("config","perfil").then(function(cfg){ document.getElementById("servicioLine").textContent = (cfg && cfg.servicio) ? cfg.servicio : DEFAULT_SERVICIO; }); renderWeek().then(function(){ loadEditor(currentSelectedDate()); }); }).catch(function(){ showToast("No se pudo iniciar el almacenamiento local"); }); })();