-
Notifications
You must be signed in to change notification settings - Fork 0
/
quiz.html
99 lines (93 loc) · 4.57 KB
/
quiz.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<title>InforNation | Descubriendo información del mundo</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
<link href="css/quiz.css" rel="stylesheet">
<link rel="icon" type="image/png" href="images/favicon.svg">
</head>
<body>
<header>
<div class="banner"><img src="images/infornation-logo.svg" alt="logo"></div>
<nav class="navbar navbar-expand-lg bg-body-tertiary">
<div class="container-fluid">
<a class="navbar-brand" href="#"><img id="logo-mini" src="images/logo-mini.svg" alt="logo mini"></a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
<li class="nav-item">
<a class="nav-link" href="index.html">Inicio</a>
</li>
<li class="nav-item">
<a class="nav-link" href="quiz.html">Quiz</a>
</li>
<li class="nav-item">
<a class="nav-link" href="acercade.html">Acerca de</a>
</li>
</ul>
<form class="d-flex" role="search">
<input class="form-control me-2" type="search" placeholder="Buscar..." aria-label="Search">
<button class="btn btn-light btnarriba" type="submit">Buscar</button>
</form>
</div>
</div>
</nav>
</header>
<main>
<br>
<br>
<br>
<h1>Quiz: ¡Disversión con banderas!</h1>
<br>
<div class="game-container">
<img id="flag" src="" alt="Bandera">
<br>
<br>
<div class="options">
<button class="btn btn-success" onclick="checkAnswer(this)">Opción 1</button>
<button class="btn btn-success" onclick="checkAnswer(this)">Opción 2</button>
<button class="btn btn-success" onclick="checkAnswer(this)">Opción 3</button>
</div>
<p id="result"></p>
<p>Puntuación: <span id="score">0</span></p>
<button class="btn btn-dark center-btn" onclick="nextFlag()">Siguiente Bandera</button>
<br>
<br>
</div>
</main>
<!-------------------MODAL PARA EVENTO DE CURIOSIDADES---------------------------------------->
<div class="modal fade" id="infoModal" tabindex="-1" aria-labelledby="infoModalLabel" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered modal-dialog-scrollable">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="infoModalLabel">¿Sabías que...?</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body" id="infoContent">
<!-- Aquí se mostrará la información del país y la curiosidad -->
</div>
</div>
</div>
</div>
<!-------------------MODAL PARA EVENTO DE CURIOSIDADES---------------------------------------->
<footer class="footer">
<div class="terms">
<p class="small-text">Sitio creado con carácter didáctico. <a href="https://github.com/JREdesign/InforNation">[GitHub: https://github.com/JREdesign/InforNation]</a></p>
<a href="#">Términos de uso</a> |
<a href="#">Política de privacidad</a> |
<a href="#">Aviso legal</a>
</div>
<div class="social-icons">
<a href="#"><img src="images/facebook.png" alt="Facebook"></a>
<a href="#"><img src="images/twitter.png" alt="Twitter"></a>
<a href="#"><img src="images/instagram.png" alt="Instagram"></a>
</div>
</footer>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
<script src="js/quiz.js"></script>
<script src="js/btn-curiosidades.js"></script>
</body>
</html>