From 67173a3a9fb968871c3b8bba2b2c9101d15b5913 Mon Sep 17 00:00:00 2001 From: Nicolas Murua Date: Wed, 13 May 2026 20:26:24 -0300 Subject: [PATCH] ejercicio 2 --- ejercicios-clase-8.js | 7 +++++++ estilo.css | 1 + 2 files changed, 8 insertions(+) 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 ========================= */