forked from marquez.juan/clase-8-DOM
ejercicio 2
This commit is contained in:
@@ -3,3 +3,10 @@ function cambiarText(texto){
|
|||||||
const textoH1 = document.querySelector("h1");
|
const textoH1 = document.querySelector("h1");
|
||||||
textoH1.textContent = texto;
|
textoH1.textContent = texto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function agregarItem(){
|
||||||
|
const listaComida = document.querySelectorAll(".item-comida");
|
||||||
|
for (const i of listaComida){
|
||||||
|
i.classList.add("item-lista");
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -101,6 +101,7 @@ h1 {
|
|||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* =========================
|
/* =========================
|
||||||
IMAGEN
|
IMAGEN
|
||||||
========================= */
|
========================= */
|
||||||
|
|||||||
Reference in New Issue
Block a user