Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Supraboy981322 authored Nov 27, 2023
1 parent 82acf01 commit 6a7bfa2
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions proto-and-wip/local-movie-browser.html
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,17 @@
let directory = ["https://supraboy981322.github.io/embeded-content/"]
let contentList = ["background", "this-site-cant-be-reached", "uncanny%20gobledygook"];
let list = document.getElementById("movies");
let hoverArea = document.getElementById("libraryDesc");
contentList.forEach((item) => {
let img = document.createElement("img");
img.src = directory + item + "Poster.png";
list.appendChild(img);
let posterImg = document.createElement("img");
posterImg.src = directory + item + "Poster.png";
list.appendChild(posterImg);
let hoverImg = document.createElement("img");
hoverImg.src = directory + item + "Description.png";
hoverArea.appendChild(hoverImg);
let title = document.createElement("div");
title.innerText = item.replaceAll("%20", " ");

});
</script>

Expand Down

0 comments on commit 6a7bfa2

Please sign in to comment.