Skip to content

Commit 17cf221

Browse files
committed
Merge branch 'main' of github.com:mjpadron11/DEV007-data-lovers
2 parents dd3250d + 4849004 commit 17cf221

2 files changed

Lines changed: 35 additions & 29 deletions

File tree

src/index.html

Lines changed: 29 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html>
33
<head>
44
<meta charset="utf-8" />
5-
<meta name="viewport" content="width=device-width, initial-scale=1" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
66
<title>El mundo de Ghibli</title>
77
<link rel="stylesheet" href="style.css" />
88
<link rel="icon" type="image/jpg" href="/Images/favicon.png" />
@@ -15,7 +15,7 @@
1515
<!-- Barra de audio -->
1616
<audio controls>
1717
<source src="audio/Merry-go-round.mp3" type="audio/mpeg" />
18-
Tu navegador no soporta la etiqueta audio.
18+
Tu navegador no soport la etiqueta audio.
1919
</audio>
2020
</div>
2121
</div>
@@ -38,16 +38,16 @@
3838
</picture>
3939
<p>Noticias</p>
4040
</a>
41-
</li>
42-
<li>
43-
<a>
44-
<picture class="icon-container">
45-
<img src="Images\iconoSinCara.png" class="icon" />
46-
</picture>
47-
<p>Personajes</p>
41+
<a href="allMovies.html">
42+
<div>
43+
<picture class="icon-container">
44+
<img src="Images\iconoTotoro.png" class="icon" />
45+
</picture>
46+
<li>Películas</li>
47+
</div>
4848
</a>
49-
</li>
50-
</ul>
49+
</ul>
50+
</nav>
5151
</aside>
5252
<div class="hamburguerbtn" id="hamburguerbtn">
5353
<span class="bar"></span>
@@ -87,22 +87,29 @@ <h2>Películas más vistas</h2>
8787
</main>
8888
<footer>
8989
<div class="contactSocial">
90-
<a href="https://www.facebook.com/groups/StudioGhibliJP">
91-
<img src="./Images/contactF.png" class="social" alt="Facebook contact"/>
92-
</a>
93-
<a href="https://twitter.com/JP_GHIBLI/">
94-
<img class="social" src="./Images/contactT.png" alt="Twitter contact"/>
95-
</a>
96-
<a href="https://www.youtube.com/playlist?list=PLVfHJfXFDXRisXKXlgcRwL0_WBaZ4cPnY">
97-
<img class="social" src="./Images/contactY.png" alt="Youtube channel"/>
98-
</a>
90+
<img
91+
class="social"
92+
src="./Images/contactF.png"
93+
a
94+
href="https://www.facebook.com/groups/StudioGhibliJP"
95+
/>
96+
<img
97+
class="social"
98+
src="./Images/contactT.png"
99+
a
100+
href="https://twitter.com/JP_GHIBLI/"
101+
/>
102+
<img
103+
class="social"
104+
src="./Images/contactY.png"
105+
a
106+
href="https://www.youtube.com/playlist?list=PLVfHJfXFDXRisXKXlgcRwL0_WBaZ4cPnY"
107+
/>
99108
</div>
100109
<div class="contact">
101110
<p>@DataLovers20</p>
102111
*Esta página se sigue actualizando
103112
</div>
104113
</footer>
105-
<script src="main.js" type="module"></script>
106-
<script src="data.js" type="module"></script>
107114
</body>
108115
</html>

src/main.js

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ import { mostViewed } from "./data.js";
22
import { movies } from "./data.js";
33
import { searchMovies } from "./functions.js";
44
import { searchMoviesByDirector } from "./functions.js";
5-
import { sortYear } from "./functions.js";
5+
import { sortYear } from "./functions.js"
66
const gallery = document.getElementById("gallery");
77
const allMovies = document.getElementById("allMovies");
8+
const searchInput = document.getElementById("search-input");
89
const selectDirector = document.getElementById("directores");
910
const filters = document.getElementById("filters");
1011
const text = document.getElementById("search-input");
@@ -49,10 +50,9 @@ if (gallery) window.addEventListener("load", mostViewed);
4950

5051
if (allMovies) window.addEventListener("load", movies);
5152

52-
if (text) {
53-
text.addEventListener("input", searchBar);
53+
if (searchInput) {
54+
searchInput.addEventListener("input", searchBar);
5455
}
55-
5656
if (selectDirector) {
5757
selectDirector.addEventListener("change", director);
5858
}
@@ -68,6 +68,5 @@ Array.from(document.getElementsByClassName("aside")).forEach((n) => {
6868
n.addEventListener("click", () => {
6969
hamburguer.classList.remove("active");
7070
aside.classList.remove("active");
71-
});
72-
});
73-
71+
})
72+
})

0 commit comments

Comments
 (0)