document.addEventListener('DOMContentLoaded', function () { // Initialize Bootstrap components var toastEl = document.getElementById('sosToast'); var toast = new bootstrap.Toast(toastEl); // SOS Button functionality var sosButton = document.getElementById('sosButton'); if (sosButton) { sosButton.addEventListener('click', function () { // Show the toast notification toast.show(); }); } });