/* widget: Notities */ /* ========================================================= Notes widget ==========================================================*/ function mountNotes(root, initState){ const ta = document.createElement("textarea"); ta.className = "notes"; ta.placeholder = T("notesPh"); if(initState && typeof initState.text==="string") ta.value = initState.text; document.addEventListener("langchange", ()=>{ ta.placeholder = T("notesPh"); }); root.appendChild(ta); return { getState: ()=>({text: ta.value}) }; }