nim-theNewWeb/public/js/script.js

17 lines
428 B
JavaScript
Raw Permalink Normal View History

2022-07-31 16:45:47 -04:00
const menuIconButton = document.querySelector("[data-menu-icon-btn]")
2022-08-30 20:49:50 -04:00
const notifBellButton = document.querySelector("[data-notifBell-btn]")
2022-07-31 16:45:47 -04:00
const sidebar = document.querySelector("[data-sidebar]")
menuIconButton.addEventListener("click", () => {
sidebar.classList.toggle("open")
})
2022-08-30 20:49:50 -04:00
notifBellButton.addEventListener(
"click", () => {
alertify.set({ delay: 1700 });
alertify.success("Success notification");
}
)