Skip to content

Commit

Permalink
back_to_top_button_fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
spring-ford committed Jun 9, 2024
1 parent 5edd661 commit 5d2b654
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion projects.html
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,11 @@ <h1 style="font-size: 3em; text-align: center;">Games</h1>
</button>
</a>
</p>
<link rel="stylesheet" href="button.css">
<a id="back-to-top" class="btn-hover color-2">Back to Top</a><br />
<script>
let games = [];
fetch("config/games.json")
fetch("/games/config/games.json")
.then((response) => response.json())
.then((data) => {
games = data;
Expand Down Expand Up @@ -137,6 +138,7 @@ <h1 style="font-size: 3em; text-align: center;">Games</h1>
backToTopButton.style.display = "block";
} else {
backToTopButton.style.display = "none";
behavior: 'smooth'
}
};

Expand Down

0 comments on commit 5d2b654

Please sign in to comment.