-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
45 lines (44 loc) · 2.06 KB
/
index.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
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Home</title>
<link rel="stylesheet" href="main.css">
<link rel="stylesheet" href="index.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Jockey+One&display=swap" rel="stylesheet">
</head>
<body>
<nav>
<img src="img/EcoStories.png" />
<ul class="words">
<li><a class="nav-title" href="index.html">HOME</a></li>
<li><a class="nav-title" href="explore.html">EXPLORE</a></li>
<li><a class="nav-title" href="information.html">INFORMATION</a></li>
<li><a class="nav-title" href="about.html">ABOUT</a></li>
<li><a class="nav-title" href="https://www.figma.com/proto/Zjwnzqwu1TQ5ipsg8pVvyT/EcoStories?node-id=140-5149&node-type=frame&t=yveIYpPaRNDTdjql-1&scaling=scale-down&content-scaling=fixed&page-id=2%3A3&starting-point-node-id=140%3A5149" target="_blank">WEB TOUR ⤴ </a></li>
</ul>
</nav>
<hr>
<div class="line"></div>
<section class="hero">
<div class="globe">
<img clas="earth-image" src="img/earth1.gif" alt="" class="img">
</div>
<div class="content">
<div class="earth-title">THE EARTH IS CHANGING</div>
<button class="explore-button" onclick="location.href='explore.html';">Explore</button>
</div>
</section>
<script>
document.getElementById('leer').addEventListener('click', function() {
const texto = document.body.innerText; // Obtiene todo el texto de la página
const utterance = new SpeechSynthesisUtterance(texto); // Crea un nuevo objeto de síntesis de voz
utterance.rate = 0.7; // Ajusta la velocidad de la voz (1 es la velocidad normal, menos de 1 es más lento)
speechSynthesis.speak(utterance); // Reproduce el texto
});
</script>
</body>
</html>