forked from marquez.juan/clase-8-DOM
ejercicio 2
This commit is contained in:
@@ -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");
|
||||
}
|
||||
}
|
||||
@@ -101,6 +101,7 @@ h1 {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
|
||||
/* =========================
|
||||
IMAGEN
|
||||
========================= */
|
||||
|
||||
Reference in New Issue
Block a user