
function openModal() {
  document.getElementById("recipe-modal").style.display = "block";
}

function closeModal() {
  document.getElementById("recipe-modal").style.display = "none";
}

// Tells the server to delete the recipe.
// Input is a Recipe
function deleteRecipe(recipe) {
  const params = new URLSearchParams();
  params.append('id', recipe.id);
  fetch('/delete-recipe', {method: 'POST', body: params});
}


function openModal() {
  document.getElementById("recipe-modal").style.display = "block";
}

function closeModal() {
  document.getElementById("recipe-modal").style.display = "none";
}

// Tells the server to delete the recipe.
// Input is a Recipe
function deleteRecipe(recipe) {
  const params = new URLSearchParams();
  params.append("id", recipe.id);
  fetch("/delete-recipe", {method: "POST", body: params});
}

Update user-page.js