-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjuegos9.php
157 lines (113 loc) · 4.13 KB
/
juegos9.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
<!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>
<body>
<div class="card-columns">
<div class="card-body">
<a href="#" class="btn btn-primary">Go somewhere</a>
</div>
<div class="card p-3">
<blockquote class="blockquote mb-0 card-body">
<p>¿Cómo se llama este animal?.</p>
</blockquote>
</div>
<div class="card">
<img class="card-img-top im" src="./img/rana.jpg" alt="Card image cap">
</div>
<div class="card-body">
<a href="#" class="btn btn-primary">Go somewhere</a>
</div>
</div>
<video id="repa" width="0" height="0"><source src="img/rana.ogg"></video> <!--Referencia del audio-->
<video id="repb" width="0" height="0"><source src="img/pez.ogg"></video><!--Referencia de la audio-->
<video id="repc" width="0" height="0"><source src="img/queso.ogg"></video><!--Referencia de la audio-->
<video id="repd" width="0" height="0"><source src="img/arbol.ogg"></video><!--Referencia de la audio-->
<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>
</body>
</html>