document.addEventListener("DOMContentLoaded", () => {
(document.querySelectorAll(".notification .delete") || []).forEach(
($delete) => {
var $notification = $delete.parentNode;
$delete.addEventListener("click", () => {
$notification.parentNode.removeChild($notification);
});
}
);
});
|