function notificationInfo(texte, timeout = 5000) { iziToast.info({ title: "Information : ", titleColor: "#fff", message: texte, messageColor: "#fff", icon: 'fas fa-info-circle', iconColor: "#fff", color: "#00a1d8", progressBarColor: "#fff", close: false, layout: 2, maxWidth: 400, timeout: timeout }); return false; } function notificationWarning(texte, timeout = 5000) { iziToast.warning({ title: "Attention : ", titleColor: "#fff", message: texte, messageColor: "#fff", icon: 'fas fa-exclamation-triangle', iconColor: "#fff", color: "#F8B454", progressBarColor: "#fff", close: false, layout: 2, maxWidth: 400, timeout: timeout }); return false; } function notificationError(texte, timeout = 5000) { iziToast.error({ title: "Erreur : ", titleColor: "#fff", message: texte, messageColor: "#fff", icon: 'fas fa-exclamation-circle', iconColor: "#fff", color: "#FF7878", progressBarColor: "#fff", close: false, layout: 2, maxWidth: 400, timeout: timeout }); return false; } function notificationSuccess(texte, timeout = 5000) { iziToast.success({ title: "Succès : ", titleColor: "#fff", message: texte, messageColor: "#fff", icon: 'fas fa-check-circle', iconColor: "#fff", color: "#77dd77", progressBarColor: "#fff", close: false, layout: 2, maxWidth: 400, timeout: timeout }); return false; }