huge updates

This commit is contained in:
sankalp committed 2025-04-03 16:30:28 +05:45
1 parent 861d64c95a
commit ee89d38489
56 files changed
+10130 -4185

No files matched your search

+29
View File
@@ -0,0 +1,29 @@
// Function to show notification toast
function showNotification(title, message, type = "success") {
const toast = document.getElementById("notificationToast");
if (!toast) return;
const toastTitle = document.getElementById("toastTitle");
const toastMessage = document.getElementById("toastMessage");
toastTitle.innerText = title;
toastMessage.innerText = message;
// Set toast color based on type
toast.className = "toast";
if (type === "success") {
toast.classList.add("bg-success", "text-white");
} else if (type === "error") {
toast.classList.add("bg-danger", "text-white");
} else if (type === "warning") {
toast.classList.add("bg-warning");
} else if (type === "info") {
toast.classList.add("bg-info", "text-white");
}
const bsToast = new bootstrap.Toast(toast);
bsToast.show();
}
// Make function globally accessible
window.showNotification = showNotification;