// Please see documentation at https://learn.microsoft.com/aspnet/core/client-side/bundling-and-minification // for details on configuring this project to bundle and minify static web assets. // Write your JavaScript code. function createToastContainer() { const container = document.createElement('div'); container.id = 'toastContainer'; container.className = 'toast-container position-fixed bottom-0 end-0 p-3'; container.setAttribute("aria-live", "polite"); container.setAttribute("aria-atomic", "true"); const liveRegion = document.createElement('div'); liveRegion.id = 'toastLiveRegion'; liveRegion.className = 'visually-hidden'; liveRegion.setAttribute('aria-live', 'assertive'); liveRegion.setAttribute('aria-atomic', 'true'); container.appendChild(liveRegion); document.body.appendChild(container); return container; } // Simple toast helper function showToast(message, type) { const toastContainer = document.getElementById('toastContainer') || createToastContainer(); const toast = document.createElement('div'); toast.className = `toast align-items-center text-white bg-${type} border-0`; toast.role = 'alert'; var useDarkElements = type === "warning" toast.innerHTML = `