Public/assets/scripts/delete-post.js
//when clicking on delete button, show delete form with another delete button and a cancel button
when clicking on delete button, show delete form with another delete button and a cancel button
when clicking on delete button show delete form with another delete button and a cancel button
function showDeleteForm(event) {
  const deleteForm = event.currentTarget.nextElementSibling;
  deleteForm.classList.add("show");
  background.classList.add("background-show");
}
function showDeleteForm ( event ) { const deleteForm = event . currentTarget . nextElementSibling ; deleteForm . classList . add ( "show" ) ; background . classList . add ( "background-show" ) ; }
when clicking on delete button, show delete form with another delete button and a cancel button
when clicking on delete button show delete form with another delete button and a cancel button