From 6742d11d7fa2558bfb682fb107b4742fc52e3733 Mon Sep 17 00:00:00 2001 From: Gonzalo <43428577@terciariourquiza.edu.ar> Date: Sat, 23 May 2026 13:18:59 -0300 Subject: [PATCH 1/9] Se vinculo JS --- index.html | 1 + 1 file changed, 1 insertion(+) diff --git a/index.html b/index.html index 0c393ac..64e23af 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 d95b280eb2e5b5f1aa2ad503ee4372cd5d97f307 Mon Sep 17 00:00:00 2001 From: Gonzalo <43428577@terciariourquiza.edu.ar> Date: Sat, 23 May 2026 13:26:26 -0300 Subject: [PATCH 2/9] Ejercicio 1 --- ejercicios-clase-8.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ejercicios-clase-8.js b/ejercicios-clase-8.js index af39c43..69aa562 100644 --- a/ejercicios-clase-8.js +++ b/ejercicios-clase-8.js @@ -1 +1,6 @@ // Vincular este archivo al archivo index.html, y resolver aquí los ejercicios. +function cambiarTitulo() { + const titulo = document.querySelector("h1"); + + titulo.textContent = "Nuevo título de la página"; +} \ No newline at end of file -- 2.49.1 From 1c2f5d83d32f39e5af06f4cf85ae891c3b4c32d4 Mon Sep 17 00:00:00 2001 From: Gonzalo <43428577@terciariourquiza.edu.ar> Date: Sat, 23 May 2026 13:28:11 -0300 Subject: [PATCH 3/9] Ejercicio 2 --- estilo.css | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/estilo.css b/estilo.css index fcb26fc..97e9e54 100644 --- a/estilo.css +++ b/estilo.css @@ -176,3 +176,10 @@ h1 { padding: 20px; } } + +/* Se usa para el ejercicio 2*/ +.item-lista { + color: green; + font-weight: bold; + background-color: lightyellow; +} -- 2.49.1 From 7cb0bb9b5df1a8cefb0b1793f61a9945d3a0833f Mon Sep 17 00:00:00 2001 From: Gonzalo <43428577@terciariourquiza.edu.ar> Date: Sat, 23 May 2026 13:30:14 -0300 Subject: [PATCH 4/9] Ejercicio 3 --- ejercicios-clase-8.js | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/ejercicios-clase-8.js b/ejercicios-clase-8.js index 69aa562..6cc1917 100644 --- a/ejercicios-clase-8.js +++ b/ejercicios-clase-8.js @@ -1,6 +1,28 @@ // Vincular este archivo al archivo index.html, y resolver aquí los ejercicios. +//Ejercicio 1 function cambiarTitulo() { const titulo = document.querySelector("h1"); titulo.textContent = "Nuevo título de la página"; +} + +//Ejercicio 2 + +function agregarClaseLista() { + const items = document.querySelectorAll("li"); + + for (const item of items) { + item.classList.add("item-lista"); + } +} + +//Ejercicio 3 +function agregarItem(texto) { + const lista = document.querySelector("#lista-inicial"); + + const nuevoItem = document.createElement("li"); + + nuevoItem.textContent = texto; + + lista.appendChild(nuevoItem); } \ No newline at end of file -- 2.49.1 From fd095347da576e15118009c69d4107cd9cb22d3c Mon Sep 17 00:00:00 2001 From: Gonzalo <43428577@terciariourquiza.edu.ar> Date: Sat, 23 May 2026 13:31:47 -0300 Subject: [PATCH 5/9] Ejercicio 4 --- estilo.css | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/estilo.css b/estilo.css index 97e9e54..384bf15 100644 --- a/estilo.css +++ b/estilo.css @@ -183,3 +183,10 @@ h1 { font-weight: bold; background-color: lightyellow; } + +/* Se usa para el ejercicio 4*/ +.destacado { + background-color: yellow; + font-weight: bold; + color: red; +} \ No newline at end of file -- 2.49.1 From 86c01badae575015183144b2f061f6c900216149 Mon Sep 17 00:00:00 2001 From: Gonzalo <43428577@terciariourquiza.edu.ar> Date: Sat, 23 May 2026 13:37:02 -0300 Subject: [PATCH 6/9] Ejercicio 5 --- ejercicios-clase-8.js | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/ejercicios-clase-8.js b/ejercicios-clase-8.js index 6cc1917..58fd8e7 100644 --- a/ejercicios-clase-8.js +++ b/ejercicios-clase-8.js @@ -25,4 +25,44 @@ function agregarItem(texto) { nuevoItem.textContent = texto; lista.appendChild(nuevoItem); +} + +//Ejercicio 4 +function destacarParrafos() { + const parrafos = document.querySelectorAll("#parrafos p"); + + for (const parrafo of parrafos) { + if (parrafo.textContent.includes("importante")) { + parrafo.classList.add("destacado"); + } + } +} + +//Ejercicio 5 +function agregarComidasLitoral() { + const div = document.createElement("div"); + + 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."; + + const lista = document.createElement("ul"); + + const comidas = ["Chipá", "Pacú", "Mbejú"]; + + for (const comida of comidas) { + const item = document.createElement("li"); + + item.textContent = comida; + + lista.appendChild(item); + } + + div.appendChild(titulo); + div.appendChild(parrafo); + div.appendChild(lista); + + document.body.appendChild(div); } \ No newline at end of file -- 2.49.1 From 96d798befe41ef04b5641da419a8116c00a07b3c Mon Sep 17 00:00:00 2001 From: Gonzalo <43428577@terciariourquiza.edu.ar> Date: Sat, 23 May 2026 13:50:03 -0300 Subject: [PATCH 7/9] Ejercicio 6 --- ejercicios-clase-8.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ejercicios-clase-8.js b/ejercicios-clase-8.js index 58fd8e7..5d089c6 100644 --- a/ejercicios-clase-8.js +++ b/ejercicios-clase-8.js @@ -65,4 +65,13 @@ function agregarComidasLitoral() { div.appendChild(lista); document.body.appendChild(div); +} + +//Ejercicio 6 +function limpiarLista(idLista) { + const items = document.querySelectorAll(`#${idLista} li`); + + for (const item of items) { + item.remove(); + } } \ No newline at end of file -- 2.49.1 From dc8e3ed3e3944d39d89c74d31a2d1d8fe083c508 Mon Sep 17 00:00:00 2001 From: Gonzalo <43428577@terciariourquiza.edu.ar> Date: Sat, 23 May 2026 13:51:52 -0300 Subject: [PATCH 8/9] Ejercicio 7 --- ejercicios-clase-8.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ejercicios-clase-8.js b/ejercicios-clase-8.js index 5d089c6..829aeef 100644 --- a/ejercicios-clase-8.js +++ b/ejercicios-clase-8.js @@ -74,4 +74,12 @@ function limpiarLista(idLista) { for (const item of items) { item.remove(); } +} + +//Ejercicio 7 +function cambiarImagen() { + const imagen = document.querySelector("#foto"); + + imagen.src = "foto2.jpg"; + imagen.alt = "Locro"; } \ No newline at end of file -- 2.49.1 From 437a58ebd18afb5ca83d5c423d0c00f8ef650526 Mon Sep 17 00:00:00 2001 From: Gonzalo <43428577@terciariourquiza.edu.ar> Date: Sat, 23 May 2026 13:56:03 -0300 Subject: [PATCH 9/9] Ejercicio 8 --- estilo.css | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/estilo.css b/estilo.css index 384bf15..bda8e45 100644 --- a/estilo.css +++ b/estilo.css @@ -189,4 +189,10 @@ h1 { background-color: yellow; font-weight: bold; color: red; +} +/* Se usa para el ejercicio 8*/ +.grupo-comidas { + background-color: beige; + padding: 15px; + border: 2px dashed brown; } \ No newline at end of file -- 2.49.1