-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMinijuego.html
47 lines (30 loc) · 997 Bytes
/
Minijuego.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Juego de adivinanza de números</title>
<link rel="stylesheet" type="text/css" href="styles.css">
<script src="script.js"></script>
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap" rel="stylesheet">
</head>
<body>
<h1>Juego de adivinanza de números</h1>
<p>Ingresa un número entre 1 y 100:</p>
<input type="number" id="numero" min="1" max="100" required>
<br>
<div class="botones">
<button onclick="adivinarNumero()">Adivinar</button>
<button onclick="reiniciarJuego()">Reiniciar</button>
</div>
<p id="mensaje"></p>
</body>
<div id="popup" class="popup">
<div class="popup-content">
<h2>¡Felicidades! Adivinaste el número.</h2>
<button onclick="cerrarPopup()">Aceptar</button>
</div>
</div>
<!--
<p id="intentos">Número de intentos: <span id="intentos-numero">0</span></p>
-->
</html>