Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
pirateIV committed Jul 31, 2023
1 parent 4b3babb commit a4f0acd
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 7 deletions.
13 changes: 7 additions & 6 deletions css/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,15 @@
width: 100%;
overflow: hidden;
position: relative;
padding-top: 59.25%;
/* padding-top: 59.25%; */
}
.responsive-iframe {
position: absolute;
position: fixed;
top: 0;
right: 0;
bottom: 0;
/* right: 0;
bottom: 0; */
left: 0;
width: 100%;
height: 100%;
width: 50%;
height: 50%;
transform: translate(50%, 50%)
}
3 changes: 2 additions & 1 deletion css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -291,9 +291,10 @@
}
.container-mov .content .mov-info h1 {
font-size: 35px;
width: 100% !important;
}
.container-mov .content .mov-info .info p,
.top_rated_mov .top-rated .mov-list .list .date,
.top_rated_mov .top-rated .mov-list .list .date,kk
.top-rated p {
font-size: 14px !important;
}
Expand Down
13 changes: 13 additions & 0 deletions js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ async function getMovieDetails(movieContent, index) {
const fullMovieBtn = document.getElementById("fullMovieBtn");
fullMovieBtn.addEventListener("click", () => {
getMovieFullDetails(id);

// viewTrailer();
// navigateToDestination(id)
});
Expand Down Expand Up @@ -409,6 +410,18 @@ async function getPopular() {
lists.forEach((list, index) => {
list.addEventListener("click", (e) => {
getMovieDetails(movieContent, index);
// fetch(
// `https://api.themoviedb.org/3/movie/${id}/videos?api_key=${api_key}`
// )
// .then((vidResponse) => vidResponse.json())
// .then((vidResponse) => {
// console.log(vidResponse.results[0].key);
// video_key = vidResponse.results[0].key;
// viewTrailer(video_key);
// })
// .catch((err) => {
// console.log(err.message);
// });
});
});
// getMovieFullDetails(id)
Expand Down

0 comments on commit a4f0acd

Please sign in to comment.