document.addEventListener('DOMContentLoaded', function () { const sendButton = document.getElementById('sendMessage'); const toastContainer = document.querySelector('.toast-container'); if (sendButton) { sendButton.addEventListener('click', function (e) { e.preventDefault(); const toastHTML = ` `; toastContainer.innerHTML = toastHTML; const toast = new bootstrap.Toast(toastContainer.querySelector('.toast')); toast.show(); }); } const selectAllCheckbox = document.getElementById('selectAll'); if (selectAllCheckbox) { selectAllCheckbox.addEventListener('change', function() { const memberCheckboxes = document.querySelectorAll('.member-checkbox'); memberCheckboxes.forEach(checkbox => { checkbox.checked = this.checked; }); }); } });