Skip to content

Commit

Permalink
solve navbar issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Meefr committed Jul 15, 2024
1 parent 5a97271 commit 0f1bef5
Show file tree
Hide file tree
Showing 3 changed files with 360 additions and 298 deletions.
4 changes: 1 addition & 3 deletions JS/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,6 @@ async function ApiCall(requestTitle, serchinput = "", movieID = "") {
.then((response) => response.json())
.then((response) => response)
.then((data) => {
console.log(movieID);
console.log(data);
CreateMovieDetails(data);
});
break;
Expand Down Expand Up @@ -261,7 +259,7 @@ function loadData(data) {
for (let i = 0; i < data.results.length; i++) {
let movieItem = document.createElement("div");
movieItem.className =
"card col-12 col-md-3 text-center shadow bg-body-tertiary rounded object-fit-cover p-0";
"card col-8 col-md-3 text-center shadow bg-body-tertiary rounded object-fit-cover p-0";
movieItem.onclick = () => ApiCall(ApiQuery[8], "", data.results[i].id);
let movieImgContainer = document.createElement("div");
movieImgContainer.className = "card-img-container";
Expand Down
Loading

0 comments on commit 0f1bef5

Please sign in to comment.