diff --git a/proveedores.html b/proveedores.html index 8dba49d..368ccb3 100644 --- a/proveedores.html +++ b/proveedores.html @@ -204,383 +204,393 @@ + function showToast(msg, isError = false) { + const t = document.getElementById('toast'), m = document.getElementById('toastMsg'); + t.className = `fixed bottom-8 right-8 px-8 py-4 rounded-2xl shadow-2xl z-[200] flex items-center gap-3 transition-all ${isError ? 'bg-red-600' : 'bg-slate-900'} text-white`; + m.innerText = msg; t.classList.remove('hidden'); + setTimeout(() => t.classList.add('hidden'), 4000); + } + \ No newline at end of file