-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
237 lines (206 loc) · 6.54 KB
/
index.html
File metadata and controls
237 lines (206 loc) · 6.54 KB
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
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
<!DOCTYPE html>
<html lang="es-es">
<head>
<meta charset="UTF-8">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Mi Página de Tareas y Prácticas</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f0f0f0;
}
header {
background-color: #333;
color: #fff;
text-align: center;
padding: 20px;
animation: changeColor 2s infinite alternate;
}
@keyframes changeColor {
0% {
background-color: #333;
}
100% {
background-color: #FF5733; /* Cambia el color a tu elección */
}
}
h1 {
font-size: 36px;
}
nav ul {
list-style: none;
padding: 0;
text-align: center;
}
nav ul li {
display: inline;
margin-right: 20px;
}
nav ul li a {
text-decoration: none;
color: #333;
font-weight: bold;
}
nav ul li a:hover {
color: #FF5733; /* Cambia el color a tu elección */
transition: color 0.3s ease;
}
/* Estilos para el control de volumen */
#volume-control {
width: 150px;
background-color: #fff;
border: none;
border-radius: 10px;
-webkit-appearance: none;
}
#volume-control::-webkit-slider-thumb {
-webkit-appearance: none;
width: 20px;
height: 20px;
background-color: #333;
border: none;
border-radius: 50%;
}
/* Estilos para la seccion principal */
.main-section {
background-color: #fff;
border-radius: 10px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
padding: 20px;
margin: 20px;
}
/* Estilos para los enlaces dentro de la seccion principal */
.main-section a {
text-decoration: none;
color: #333;
font-weight: bold;
margin-right: 10px;
}
/* Estilos para los encabezados de las secciones de trimestres */
.section-header {
font-size: 24px;
margin-top: 20px;
}
/* Estilos para los desplegables */
.dropdown {
display: none;
}
.dropdown-label {
cursor: pointer;
color: #333;
background-color: #f0f0f0;
padding: 10px;
border-radius: 5px;
margin-top: 10px;
transition: background-color 0.3s ease;
}
.dropdown-label:hover {
background-color: #FF5733; /* Cambia el color a tu elección */
}
.dropdown-content {
display: none;
padding: 10px;
border-radius: 5px;
background-color: #fff;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
.dropdown-label.active + .dropdown-content {
display: block;
}
/* Estilos para el GIF desplazante */
.gif-desplazante {
position: absolute;
top: 60%;
left: 0px;
width: 300px;
height: auto;
animation: slideIn 2s linear infinite;
}
/* Estilos para la animación de salto */
.jump-animation {
animation: jump 1s ease-out;
transform-origin: bottom center;
}
@keyframes slideIn {
0% {
left: -300px;
}
100% {
left: calc(100% + 100px);
}
}
@keyframes jump {
0% {
transform: translateY(0);
}
25% {
transform: translateY(-20px);
}
50% {
transform: translateY(0);
}
75% {
transform: translateY(-20px);
}
100% {
transform: translateY(0);
}
}
</style>
</head>
<body>
<audio autoplay loop id="background-music">
<source src="musica_ascensor.mp3" type="audio/mpeg">
Tu navegador no admite la reproducción de audio.
</audio>
<header>
<h1>Francisco Manuel Monjo Lancharro</h1>
</header>
<nav>
<ul>
<li><a href="trimestre1.html">Primer Trimestre</a></li>
<li><a href="trimestre2.html">Segundo Trimestre</a></li>
<li><a href="trimestre3.html">Tercer Trimestre</a></li>
<li><a href="par.html">Apuntes del año</a></li>
</ul>
</nav>
<div class="main-section">
<h2 class="section-header">Bienvenido</h2>
</div>
<img src="imagenes/nyan-cat.gif" id="gifDesplazante" alt="GIF Desplazante" class="gif-desplazante">
<label for="volume-control">Volumen:</label>
<input type="range" id="volume-control" min="0" max="1" step="0.1" value="0.5">
<div class="dropdown">
<label class="dropdown-label" for="trimestre1-toggle">Primer Trimestre</label>
<input type="checkbox" id="trimestre1-toggle" class="dropdown-label">
<div class="dropdown-content">
<a href="#">Temas</a>
<a href="#">Practicas</a>
</div>
</div>
<script>
document.addEventListener("DOMContentLoaded", function() {
const gato = document.getElementById("gifDesplazante");
gato.addEventListener("click", function() {
// Agregar la clase de animación al hacer clic
gato.classList.add("jump-animation");
// Eliminar la clase de animación después de 1 segundo (1000 milisegundos)
setTimeout(function() {
gato.classList.remove("jump-animation");
}, 1000);
});
});
const audio = document.getElementById("background-music");
// Obtén una referencia al control de volumen
const volumeControl = document.getElementById("volume-control");
audio.volume = volumeControl.value;
// Agrega un evento que se activa cuando cambia el valor del control de volumen
volumeControl.addEventListener("input", function() {
audio.volume = volumeControl.value;
});
</script>
</body>
</html>