-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjuegos10.php
188 lines (153 loc) · 6.38 KB
/
juegos10.php
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="css/main.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="./css/juego.css">
<title>Document</title>
</head>
<body>
<!doctype html>
<html>
<head>
<title>Prueba de Bootstrap 4</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
</head>
<body>
<div class="container">
<div class="card-columns mt-3">
<!-- Card 1 -->
<div class="card text-center border-info">
<img class="card-img-top" src="./img/limon.jpg" alt="Card image cap"> <!--Referencia de la imagen-->
<div class="card-body">
<a href="#" id="a" class="btn btn-primary" onclick="indicarFallo();iniciarAbeja();">Verificar</a>
</div>
</div>
<!-- Card 2 -->
<div class="card text-center border-info">
<img class="card-img-top" src="./img/toro.jpg" alt="Card image cap"> <!--Referencia de la imagen-->
<div class="card-body">
<a href="#" id="b" class="btn btn-primary" onclick="indicarSorpresa();iniciarCasa();">Verificar</a>
</div>
</div>
<!-- Card instrucciones -->
<div class="card text-center border-info">
<!-- <img class="card-img-top" src="./img/admi.png" alt="Instrucciones"> -->
<!-- <div class="card-body"> -->
<h5 class="card-title taman">¡Tú puedes!</h5>
<p class="card-text tama">Selecciona la imagen de acuerdo a su inicial correspondiente de la letra que se muestre.</p>
<!-- <button type="button" class="btn btn-primary" value="" id="verificar" onclick="indicarSorpresa()">Verificar</button> -->
<!-- </div> -->
</div>
<div class="card text-center border-info">
<img class="card-img-top" src="./img/t.jpg" alt="Card image cap"> <!--Referencia de la imagen-->
<div class="card-body">
<!-- <button type="button" class="btn btn-primary" value="" id="verificar" onclick="indicarSorpresa()">Verificar</button> -->
</div>
</div>
<div class="card text-center border-info">
<img class="card-img-top" src="./img/tambor.jpg" alt="Card image cap"> <!--Referencia de la imagen-->
<div class="card-body">
<a href="#" id="c" class="btn btn-primary" onclick="indicarSorpresa();iniciarMesa();">Verificar</a>
</div>
</div>
<div class="card text-center border-info">
<img class="card-img-top" src="./img/fresa.jpg" alt="Card image cap"> <!--Referencia de la imagen-->
<div class="card-body">
<a href="#" id="d" class="btn btn-primary" onclick="indicarFallo();iniciarArbol();">Verificar</a>
</div>
</div>
</div>
</div>
<video id="repa" width="0" height="0"><source src="img/limon.ogg"></video> <!--Referencia del audio-->
<video id="repb" width="0" height="0"><source src="img/toro.ogg"></video><!--Referencia de la audio-->
<video id="repc" width="0" height="0"><source src="img/tambor.ogg"></video><!--Referencia de la audio-->
<video id="repd" width="0" height="0"><source src="img/fresa.ogg"></video><!--Referencia de la audio-->
</body>
</html>
<script>
// Sorpresa y fallo
function indicarSorpresa() {
Swal.fire({
title: "¡Acertaste!",
imageUrl: 'https://reygif.com/media/russell-81105.gif?fbclid=IwAR3spwwPnvIl77Dd_QHm79bzcSIBcGuTXnacjz4stf9LHWUox9aHytpb5ek',
imageWidth: '800 px',
confirmButtonText: "Seguir jugando",
allowOutsideClick: false,
allowEscapeKey: false,
width: '23rem',
})
}
function indicarFallo() {
Swal.fire({
title: "Inténtalo nuevamente!",
imageUrl: './img/intento.png',
imageWidth: '800 px',
confirmButtonText: "Seguir jugando",
allowOutsideClick: false,
allowEscapeKey: false,
width: '23rem',
})
}
//Puto
function accionPlay() {
if (!repa.paused && !repa.ended) {
play.value = '\u25BA'; //\u25BA
} else {
repa.play();
play.value = '||';
}
}
function iniciar() {
play = document.getElementById('a');
play.addEventListener('click', accionPlay);
}
window.addEventListener('load', iniciar, false);
function accionPlayb() {
if (!repb.paused && !repb.ended) {
play.value = '\u25BA'; //\u25BA
} else {
repb.play();
play.value = '||';
}
}
function iniciarCasa() {
play = document.getElementById('b');
play.addEventListener('click', accionPlayb);
}
window.addEventListener('load', iniciarCasa, false);
function accionPlayc() {
if (!repc.paused && !repc.ended) {
play.value = '\u25BA'; //\u25BA
} else {
repc.play();
play.value = '||';
}
}
function iniciarMesa() {
play = document.getElementById('c');
play.addEventListener('click', accionPlayc);
}
window.addEventListener('load', iniciarMesa, false);
function accionPlayd() {
if (!repd.paused && !repd.ended) {
play.value = '\u25BA'; //\u25BA
} else {
repd.play();
play.value = '||';
}
}
function iniciarArbol() {
play = document.getElementById('d');
play.addEventListener('click', accionPlayd);
}
window.addEventListener('load', iniciarArbol, false);
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/limonte-sweetalert2/10.7.0/sweetalert2.all.js"></script>
</div>
</body>
</html>