flash, middleware
This commit is contained in:
@ -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;")
|
||||
}
|
Reference in New Issue
Block a user