diff --git a/ejercicios-clase-8.js b/ejercicios-clase-8.js index a95f6ea..de2746c 100644 --- a/ejercicios-clase-8.js +++ b/ejercicios-clase-8.js @@ -2,4 +2,11 @@ function cambiarText(texto){ const textoH1 = document.querySelector("h1"); textoH1.textContent = texto; +} + +function agregarItem(){ + const listaComida = document.querySelectorAll(".item-comida"); + for (const i of listaComida){ + i.classList.add("item-lista"); + } } \ No newline at end of file diff --git a/estilo.css b/estilo.css index fcb26fc..6c2d1de 100644 --- a/estilo.css +++ b/estilo.css @@ -101,6 +101,7 @@ h1 { font-weight: bold; } + /* ========================= IMAGEN ========================= */