update besar besaran

This commit is contained in:
TigerStable
2026-06-12 16:36:31 +07:00
parent 515c830342
commit 017fe392bc
63 changed files with 4219 additions and 75 deletions
+9
View File
@@ -0,0 +1,9 @@
/* ═══════════════════════════════════════════════════════════
3. TOAST
═══════════════════════════════════════════════════════════ */
const Toast = {
_show(msg,type){ const c=document.getElementById('toasts'),el=document.createElement('div');
el.className=`toast ${type}`;el.innerHTML=`<span>${{success:'✓',error:'✕',info:''}[type]||''}</span>${H.esc(msg)}`;
c.appendChild(el);setTimeout(()=>{el.classList.add('out');el.addEventListener('animationend',()=>el.remove(),{once:true})},2800); },
success: m=>Toast._show(m,'success'), error: m=>Toast._show(m,'error'), info: m=>Toast._show(m,'info'),
};