Ajuste para 50 del número máximo

This commit is contained in:
2026-06-10 15:36:50 -05:00
parent e08637ed3a
commit e1f54a773d
3 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
let numeroSecreto = 0; let numeroSecreto = 0;
let Intentos = 0; let Intentos = 0;
let numerosSorteados = []; let numerosSorteados = [];
let numeroMaximo = 100; let numeroMaximo = 50;
function asignarTextoElemento(elemento, texto) { function asignarTextoElemento(elemento, texto) {
let elementoHTML = document.querySelector(elemento); let elementoHTML = document.querySelector(elemento);
+1 -1
View File
@@ -21,7 +21,7 @@
<h1></h1> <h1></h1>
<p class="texto__parrafo"></p> <p class="texto__parrafo"></p>
</div> </div>
<input type="number" min="1" max="100" class="container__input"> <input type="number" min="1" max="50" class="container__input">
<div class="chute container__botones"> <div class="chute container__botones">
<button class="container__boton">Intentar</button> <button class="container__boton">Intentar</button>
<button class="container__boton" id="reiniciar" disabled>Nuevo juego</button> <button class="container__boton" id="reiniciar" disabled>Nuevo juego</button>
+3
View File
@@ -13,6 +13,9 @@ body {
justify-content: center; justify-content: center;
} }
p {
display: block;
}
body::before { body::before {
background-image: url("img/code.png"); background-image: url("img/code.png");