From a3255c92f5b98c200081a418b96e9b8a0903b93d Mon Sep 17 00:00:00 2001 From: Lucio Gaibazzi Date: Thu, 21 May 2026 22:17:05 -0300 Subject: [PATCH 1/9] =?UTF-8?q?Agrega=20vinculaci=C3=B3n=20del=20formato?= =?UTF-8?q?=20JS=20en=20index.html?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.html b/index.html index 0c393ac..e02593a 100644 --- a/index.html +++ b/index.html @@ -31,5 +31,7 @@

¿Y este párrafo? ¿Será importante?

Este es otro párrafo del montón.

+ + -- 2.49.1 From 475d4dd86b435bdbf063ca42c7cd9659e61f9688 Mon Sep 17 00:00:00 2001 From: Lucio Gaibazzi Date: Thu, 21 May 2026 23:39:12 -0300 Subject: [PATCH 2/9] Agrego el ejercicio 1 de la clase 8 --- ejercicios-clase-8.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ejercicios-clase-8.js b/ejercicios-clase-8.js index af39c43..9167d51 100644 --- a/ejercicios-clase-8.js +++ b/ejercicios-clase-8.js @@ -1 +1,8 @@ // Vincular este archivo al archivo index.html, y resolver aquí los ejercicios. + +//Ejercicio 1 de la clase 8. + +function cambiarPrimerTitulo() { + const titulo = document.querySelector("h1"); + titulo.textContent = "El título ha sido modificado con éxito" +} \ No newline at end of file -- 2.49.1 From fe8150b2f1d2f6d453b92e5b6c7064bb6b6604ab Mon Sep 17 00:00:00 2001 From: Lucio Gaibazzi Date: Mon, 25 May 2026 23:08:31 -0300 Subject: [PATCH 3/9] Agrego ejercicio 2 de la clase 8 --- ejercicios-clase-8.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/ejercicios-clase-8.js b/ejercicios-clase-8.js index 9167d51..3f593cc 100644 --- a/ejercicios-clase-8.js +++ b/ejercicios-clase-8.js @@ -5,4 +5,15 @@ function cambiarPrimerTitulo() { const titulo = document.querySelector("h1"); titulo.textContent = "El título ha sido modificado con éxito" +} + + +//Ejercicio 2 de la clase 8. + +function agregarItemLista() { + const items = document.querySelectorAll(".lista-comidas"); + + for (const item of items) { + item.classList.add("item-lista"); + } } \ No newline at end of file -- 2.49.1 From 0d5a1d045cfc2f899d078af02e7b32190d746fc8 Mon Sep 17 00:00:00 2001 From: Lucio Gaibazzi Date: Mon, 25 May 2026 23:33:59 -0300 Subject: [PATCH 4/9] Agrego ejercicio 3 de la clase 8 --- ejercicios-clase-8.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/ejercicios-clase-8.js b/ejercicios-clase-8.js index 3f593cc..8c764f5 100644 --- a/ejercicios-clase-8.js +++ b/ejercicios-clase-8.js @@ -16,4 +16,16 @@ function agregarItemLista() { for (const item of items) { item.classList.add("item-lista"); } +} + + + +//Ejercicio 3 de la clase 8. + +function agregarItem(comidas) { + const lista = document.querySelector("#lista-inicial"); + + const nuevoItem = document.createElement("li"); + nuevoItem.textContent = comidas; + lista.appendChild(nuevoItem); } \ No newline at end of file -- 2.49.1 From 63f22a7dbcfc4bf7aafe5afc84a57455a93c3a24 Mon Sep 17 00:00:00 2001 From: Lucio Gaibazzi Date: Tue, 26 May 2026 00:21:02 -0300 Subject: [PATCH 5/9] Agrego ejercicio 4 de la clase 8 --- ejercicios-clase-8.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/ejercicios-clase-8.js b/ejercicios-clase-8.js index 8c764f5..60cfdfd 100644 --- a/ejercicios-clase-8.js +++ b/ejercicios-clase-8.js @@ -28,4 +28,18 @@ function agregarItem(comidas) { const nuevoItem = document.createElement("li"); nuevoItem.textContent = comidas; lista.appendChild(nuevoItem); +} + + + +//Ejercicio 4 de la clase 8. + +function destacarParrafos() { + const selecparrafos = document.querySelectorAll("#parrafos p"); + + for (const parrafo of selecparrafos) { + if (parrafo.textContent.includes("importante")) { + parrafo.classList.add("destacado"); + } + } } \ No newline at end of file -- 2.49.1 From 9e2442d6c86f4b83004204eacd0d2ed4cdc45303 Mon Sep 17 00:00:00 2001 From: Lucio Gaibazzi Date: Tue, 26 May 2026 00:52:00 -0300 Subject: [PATCH 6/9] Agrego ejercicio 5 de la clase 8 --- ejercicios-clase-8.js | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/ejercicios-clase-8.js b/ejercicios-clase-8.js index 60cfdfd..37ac4b0 100644 --- a/ejercicios-clase-8.js +++ b/ejercicios-clase-8.js @@ -42,4 +42,36 @@ function destacarParrafos() { parrafo.classList.add("destacado"); } } +} + + + +//Ejercicio 5 de la clase 8. + +function crearNuevoDiv() { + const div = document.createElement("div"); + div.classList.add("grupo-comidas"); + + const titulo = document.createElement("h2"); + titulo.textContent = "Comidas típicas del litoral"; + + const parrafo = document.createElement("p"); + parrafo.textContent = "Algunas comidas tradicionales de la región litoral."; + + const lista = document.createElement("ul"); + lista.classList.add("lista-comidas") + + const comidas = ["Chipá", "Surubí", "Salmón", "Rabas"]; + + for (const comida of comidas) { + const elementosLista = document.createElement("li"); + elementosLista.textContent = comida; + lista.appendChild(elementosLista); + } + + div.appendChild(titulo); + div.appendChild(parrafo); + div.appendChild(lista); + + document.body.appendChild(div); } \ No newline at end of file -- 2.49.1 From 242112f9969d1024731b1adb0ea3b133cb7eec17 Mon Sep 17 00:00:00 2001 From: Lucio Gaibazzi Date: Wed, 27 May 2026 02:24:17 -0300 Subject: [PATCH 7/9] Agrego un nuevo id a la lista del ejercicio 5 y agrego el ejercicio 6 de la clase 8 --- ejercicios-clase-8.js | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/ejercicios-clase-8.js b/ejercicios-clase-8.js index 37ac4b0..7c5c3ed 100644 --- a/ejercicios-clase-8.js +++ b/ejercicios-clase-8.js @@ -60,6 +60,7 @@ function crearNuevoDiv() { const lista = document.createElement("ul"); lista.classList.add("lista-comidas") + lista.id = "lista-litoral"; const comidas = ["Chipá", "Surubí", "Salmón", "Rabas"]; @@ -74,4 +75,17 @@ function crearNuevoDiv() { div.appendChild(lista); document.body.appendChild(div); -} \ No newline at end of file +} + + + +//Ejercicio 6 de la clase 8. + +function limpiarLista(idLista) { + const borrarItem = document.querySelectorAll(`#${idLista} li`); + + for (const borrarItems of borrarItem) { + borrarItems.remove(); + } +} + -- 2.49.1 From d5d3fc9d7c99fbfe7ecf77d91c8bd629bcf4533f Mon Sep 17 00:00:00 2001 From: Lucio Gaibazzi Date: Wed, 27 May 2026 02:46:56 -0300 Subject: [PATCH 8/9] Agrego ejercicio 7 de la clase 8 --- ejercicios-clase-8.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/ejercicios-clase-8.js b/ejercicios-clase-8.js index 7c5c3ed..ce197a9 100644 --- a/ejercicios-clase-8.js +++ b/ejercicios-clase-8.js @@ -89,3 +89,15 @@ function limpiarLista(idLista) { } } + + +//Ejercicio 7 de la clase 8. + +function atribImagen() { + const imagen = document.querySelector("#foto"); + + imagen.setAttribute("src", "foto2.jpg"); + imagen.setAttribute("alt", "Locro"); + console.log(imagen.getAttribute("src")); +} + -- 2.49.1 From 24ae861fb5eae7d3988e4ca7cc8516f94ec32297 Mon Sep 17 00:00:00 2001 From: Lucio Gaibazzi Date: Wed, 27 May 2026 19:06:02 -0300 Subject: [PATCH 9/9] Agrego el ejercicio 8 de la clase 8 --- ejercicios-clase-8.js | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/ejercicios-clase-8.js b/ejercicios-clase-8.js index ce197a9..6f88b5e 100644 --- a/ejercicios-clase-8.js +++ b/ejercicios-clase-8.js @@ -101,3 +101,31 @@ function atribImagen() { console.log(imagen.getAttribute("src")); } + + +//Ejercicio 8 de la clase 8. + +function construirLista(arrayComidas) { + const div2 = document.createElement("div"); + div2.classList.add("grupo-comidas"); + + const titulo2 = document.createElement("h2"); + titulo2.textContent = "Comidas mendocinas"; + + const lista2 = document.createElement("ul"); + lista2.classList.add("lista-comidas"); + + for (const comida of arrayComidas) { + const elementLista = document.createElement("li"); + elementLista.textContent = comida; + lista2.appendChild(elementLista); + } + + div2.appendChild(titulo2); + div2.appendChild(lista2); + + document.body.appendChild(div2); + + +} + -- 2.49.1