From f91489c01d4be38109b41f6396974995999bd873 Mon Sep 17 00:00:00 2001 From: Luca Scarano <47073568@terciariourquiza.edu.ar> Date: Sun, 17 May 2026 23:23:12 -0300 Subject: [PATCH 1/8] vincule la pagina e hice el ejercicio 1 --- ejercicios.js | 5 +++++ index.html | 1 + 2 files changed, 6 insertions(+) create mode 100644 ejercicios.js diff --git a/ejercicios.js b/ejercicios.js new file mode 100644 index 0000000..25c1707 --- /dev/null +++ b/ejercicios.js @@ -0,0 +1,5 @@ +// Vincular este archivo al archivo index.html, y resolver aquí los ejercicios. +//ejercicio 1 +function titulo(){ +document.querySelector("h1").textContent = "Gastronomia Argentina"; +} diff --git a/index.html b/index.html index 0c393ac..0bee02d 100644 --- a/index.html +++ b/index.html @@ -31,5 +31,6 @@

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

Este es otro párrafo del montón.

+ -- 2.49.1 From 799a081fbeba849474526534e218b443542e3d5c Mon Sep 17 00:00:00 2001 From: Luca Scarano <47073568@terciariourquiza.edu.ar> Date: Sun, 17 May 2026 23:52:00 -0300 Subject: [PATCH 2/8] ejercicio 2 --- ejercicios.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ejercicios.js b/ejercicios.js index 25c1707..2751611 100644 --- a/ejercicios.js +++ b/ejercicios.js @@ -3,3 +3,11 @@ function titulo(){ document.querySelector("h1").textContent = "Gastronomia Argentina"; } +//ejercicio 2 +function ejercicio2() { +const items = document.querySelectorAll("li"); +for (const item of items) { + item.classList.add("item-lista"); + item.style.color = "red" +} +} \ No newline at end of file -- 2.49.1 From ad2f54d04c5422ac8fde48d2a6a8be85ceaf2191 Mon Sep 17 00:00:00 2001 From: Luca Scarano <47073568@terciariourquiza.edu.ar> Date: Mon, 18 May 2026 00:20:26 -0300 Subject: [PATCH 3/8] ejercicio 3 --- ejercicios.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ejercicios.js b/ejercicios.js index 2751611..f4b8f77 100644 --- a/ejercicios.js +++ b/ejercicios.js @@ -10,4 +10,11 @@ for (const item of items) { item.classList.add("item-lista"); item.style.color = "red" } +} +//ejercicio 3 +function agregaritem(comida){ +const lista = document.querySelector("#lista-inicial"); +const nuevoitem = document.createElement("li") +nuevoitem.textContent = comida; +lista.appendChild(nuevoitem); } \ No newline at end of file -- 2.49.1 From f9fcf5b79c61198de1454c0131e696889e8e9c1b Mon Sep 17 00:00:00 2001 From: Luca Scarano <47073568@terciariourquiza.edu.ar> Date: Mon, 18 May 2026 15:21:56 -0300 Subject: [PATCH 4/8] ejercicio 4 --- ejercicios.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ejercicios.js b/ejercicios.js index f4b8f77..d227970 100644 --- a/ejercicios.js +++ b/ejercicios.js @@ -17,4 +17,10 @@ const lista = document.querySelector("#lista-inicial"); const nuevoitem = document.createElement("li") nuevoitem.textContent = comida; lista.appendChild(nuevoitem); +} +//ejercicio 4 +const parrafos = document.querySelectorAll("#parrafos p"); +for (const parrafo of parrafos){ +if (parrafo.textContent.includes ("importante")) + parrafo.classList.add("destacado") } \ No newline at end of file -- 2.49.1 From 2d9a7d037b053ea49c7aa1a9d4cdb252e6d3cae1 Mon Sep 17 00:00:00 2001 From: Luca Scarano <47073568@terciariourquiza.edu.ar> Date: Mon, 18 May 2026 16:16:11 -0300 Subject: [PATCH 5/8] ejercicio 5 --- ejercicios.js | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/ejercicios.js b/ejercicios.js index d227970..066752a 100644 --- a/ejercicios.js +++ b/ejercicios.js @@ -23,4 +23,27 @@ const parrafos = document.querySelectorAll("#parrafos p"); for (const parrafo of parrafos){ if (parrafo.textContent.includes ("importante")) parrafo.classList.add("destacado") -} \ No newline at end of file +} +//ejercicio 5 +function ejercicio5(){ +const seccion = document.createElement("div") +const titulo = document.createElement("h2") +titulo.textContent = "comidas típicas de la región del litoral" +const parrafo = document.createElement("p") +parrafo.textContent = "La región del litoral argentino se caracteriza por una gastronomía muy influenciada por los ríos, la pesca y las tradiciones guaraníes." +const lista = document.createElement("ul"); +const item = document.createElement("li"); +item.textContent = "chipa"; +const item2 = document.createElement("li"); +item2.textContent = "pacu asado"; +const item3 = document.createElement("li"); +item3.textContent = "surubi a la parrilla"; +lista.appendChild(item); +lista.appendChild(item2); +lista.appendChild(item3); +seccion.appendChild(titulo) +seccion.appendChild(parrafo) +seccion.appendChild(lista) +document.body.appendChild(seccion) +} +//ejercicio 6 -- 2.49.1 From d5fffd01428316a5baa024af3d6a7b4fd98599e6 Mon Sep 17 00:00:00 2001 From: Luca Scarano <47073568@terciariourquiza.edu.ar> Date: Mon, 18 May 2026 16:31:45 -0300 Subject: [PATCH 6/8] ejercicio 6 --- ejercicios.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ejercicios.js b/ejercicios.js index 066752a..bc87f64 100644 --- a/ejercicios.js +++ b/ejercicios.js @@ -47,3 +47,10 @@ seccion.appendChild(lista) document.body.appendChild(seccion) } //ejercicio 6 +function limpiarlista(){ +const elementos = document.querySelectorAll(`#${idLista} li`) +for (const elemento of elementos){ +elemento.remove() +} + +} \ No newline at end of file -- 2.49.1 From 78e9f0bc7603834c18d9e79359f978f002985f69 Mon Sep 17 00:00:00 2001 From: Luca Scarano <47073568@terciariourquiza.edu.ar> Date: Mon, 18 May 2026 16:42:06 -0300 Subject: [PATCH 7/8] ejercicio 7 --- ejercicios.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ejercicios.js b/ejercicios.js index bc87f64..fbbe69d 100644 --- a/ejercicios.js +++ b/ejercicios.js @@ -51,6 +51,9 @@ function limpiarlista(){ const elementos = document.querySelectorAll(`#${idLista} li`) for (const elemento of elementos){ elemento.remove() + } } - -} \ No newline at end of file +//ejercicio 7 +const imagen = document.querySelector("img") +imagen.setAttribute("src", "foto2.jpg"); +imagen.setAttribute("alt", "Locro") \ No newline at end of file -- 2.49.1 From 68407857f3907182c71ad489d962dc1e255bbf21 Mon Sep 17 00:00:00 2001 From: Luca Scarano <47073568@terciariourquiza.edu.ar> Date: Mon, 18 May 2026 17:35:20 -0300 Subject: [PATCH 8/8] ejercicio 8 --- ejercicios.js | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/ejercicios.js b/ejercicios.js index fbbe69d..20d3c15 100644 --- a/ejercicios.js +++ b/ejercicios.js @@ -56,4 +56,19 @@ elemento.remove() //ejercicio 7 const imagen = document.querySelector("img") imagen.setAttribute("src", "foto2.jpg"); -imagen.setAttribute("alt", "Locro") \ No newline at end of file +imagen.setAttribute("alt", "Locro") +//ejercicio 8 +function construirLista(listacomidas) { +const seccion = document.createElement("div") +const titulo = document.createElement("h2") +titulo.textContent = "comidas típicas de la región del litoral" +const lista = document.createElement("ul"); +for (const comida of listacomidas){ + const elemento = document.createElement("li") + elemento.textContent = comida + lista.appendChild(elemento) +} +seccion.appendChild(titulo) +seccion.appendChild(lista) +return seccion +} \ No newline at end of file -- 2.49.1