flash, middleware

This commit is contained in:
2024-10-17 14:55:00 +03:00
parent c3c377a4e2
commit 4355651695
22 changed files with 226 additions and 75 deletions

View File

@ -16,8 +16,15 @@
$('#sidebar').toggleClass('active');
});
$("#closeAlertBtn").click(function () {
$("#mainAlert").alert("close");
});
})(jQuery);
window.addEventListener("load", function () {
let closeBtn = document.querySelectorAll(".closeAlertBtn");
closeBtn.forEach((item) => {
item.addEventListener("click", closeAlert);
});
});
function closeAlert() {
this.parentNode.setAttribute("style", "display: none;")
}