Skip to content

Commit

Permalink
Edit A Icon Page And A New Line To Get A Background Image
Browse files Browse the repository at this point in the history
  • Loading branch information
GziXnine committed Aug 27, 2024
1 parent 7d2e6e5 commit 232c813
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
1 change: 0 additions & 1 deletion images/icon.svg

This file was deleted.

1 change: 1 addition & 0 deletions images/section-solid.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Special Design</title>
<!-- ! Page Title Icon -->
<link rel="icon" href="images/Icon_03.png">
<link rel="icon" href="images/section-solid.svg">
<!-- ! Main Template SASS File -->
<link rel="stylesheet" href="css/style.css">
<!-- ! Render All Elements Normally -->
Expand Down
5 changes: 3 additions & 2 deletions js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,9 +198,10 @@ function randomizeImg() {

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

0 comments on commit 232c813

Please sign in to comment.