-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmenu.html
117 lines (100 loc) · 3.23 KB
/
menu.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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
<!DOCTYPE html>
<html lang="es">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" href="style.css">
<title>Welcome Marta</title>
<style>
body {
margin: 0;
padding: 0;
background-color: #004080; /* Cambia el color de fondo a azul sólido */
}
#carousel-container {
width: 100%;
height: 350px; /* Ajusta la altura del carrusel según tu preferencia */
overflow: hidden;
position: relative;
}
.carousel-img {
width: 100%;
height: auto;
position: absolute;
top: 0;
left: 0;
opacity: 0;
animation: slide 10s infinite;
}
@keyframes slide {
0% {
opacity: 0;
}
25% {
opacity: 1;
}
75% {
opacity: 1;
}
100% {
opacity: 0;
}
}
.carousel-img:nth-child(1) {
animation-delay: 0s;
}
.carousel-img:nth-child(2) {
animation-delay: 3s;
}
.carousel-img:nth-child(3) {
animation-delay: 6s;
}
/* Ajusta los valores de animation-delay según el número de imágenes y la duración de la animación */
</style>
</head>
<body>
<div id="header">
<img src="logomichelin.png" alt="Logo Michelin">
<div id="welcome">
<h2>Welcome Marta</h2>
</div>
</div>
<div id="menu">
<ul>
<li><a href="mqutilizadas.html">Machine Occupation</a></li>
<li><a href="produccion.html">Machines for Production</a></li>
<li><a href="rmcosts.html">Raw Materials</a></li>
</ul>
<br>
</div>
<div id="notify-button">
<img src="welcome1.png" alt="Muñeco" style="width: 260px">
<a href="notifbreak.html" class="button">Notify Breakdown</a>
<img src="welcome.png" alt="Muñeco" style="width: 300px"><br>
<a href="updateav.html" class="button">Notify Repair</a>
</div><br><br><br><br>
<div id="carousel-container">
<img src="imagen1.jpg" alt="Slide 1" class="carousel-img">
<img src="imagen2.jpg" alt="Slide 2" class="carousel-img">
<img src="imagen3.jpg" alt="Slide 3" class="carousel-img">
<!-- Agrega más imágenes según sea necesario -->
</div>
<script>
var images = document.querySelectorAll('.carousel-img');
var currentImageIndex = 0;
function showImage(index) {
images.forEach(function (img, i) {
if (i === index) {
img.style.opacity = '1';
} else {
img.style.opacity = '0';
}
});
}
function nextImage() {
currentImageIndex = (currentImageIndex + 1) % images.length;
showImage(currentImageIndex);
}
setInterval(nextImage, 5000); // Cambia la imagen cada 5 segundos
</script>
</body>
</html>