Skip to content

Commit

Permalink
Add A Banner To My Website
Browse files Browse the repository at this point in the history
  • Loading branch information
GziXnine committed Aug 27, 2024
1 parent 9c5fe4e commit bb95516
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Binary file added Banner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,8 @@ function randomizeImg() {

clear = setInterval(() => {
let randomNum = Math.floor(Math.random() * imgsArray.length);
landingPage.style.cssText = `background-image: url("https://allamf5j.github.io/images/${imgsArray[randomNum]}")`;
landingPage.style.backgroundImage =
'url("images/' + imgsArray[randomNum] + '")';
localStorage.setItem("background", imgsArray[randomNum]);
}, 8000);
}
Expand Down

0 comments on commit bb95516

Please sign in to comment.