-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
32 lines (31 loc) · 1.18 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<title>Juego Aleatorio</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Delicious+Handrawn&family=Indie+Flower&family=Righteous&family=Russo+One&display=swap" rel="stylesheet">
<link rel="stylesheet" href="css/index.css">
</head>
<body>
<div id="container">
<div class="wrapper">
<svg>
<text x="50%" y="50%" dy=".35em" text-anchor="middle">
Puzzle ORT
</text>
</svg>
</div>
<p>¡Arma el rompecabezas y adiviná que espacio de la ORT es para ganar!</p>
<button onclick="cargarPaginaAleatoria()" class="button-56" >¡Vamos!</button>
</div>
<script>
function cargarPaginaAleatoria() {
var paginas = ["juego.html", "juego3.html", "juego2.html"];
var paginaAleatoria = paginas[Math.floor(Math.random() * paginas.length)];
// Redirigir al usuario a la página aleatoria
window.location.href = paginaAleatoria;
}
</script>
</body>
</html>