document.addEventListener("DOMContentLoaded", function () { const openNotificationsBtn = document.getElementById("openNotificationsSideBar"); const closeNotificationsBtn = document.getElementById("closeNotificationsSideBar"); const notificationsSideBar = document.getElementById("notificationsSideBar"); function openNotifications() { notificationsSideBar.classList.remove("hidden"); document.body.classList.add("overflow-hidden"); } function closeNotifications() { notificationsSideBar.classList.add("hidden"); document.body.classList.remove("overflow-hidden"); } openNotificationsBtn.addEventListener("click", function () { openNotifications(); }); closeNotificationsBtn.addEventListener("click", function () { closeNotifications(); }); });