Skip to content

Commit

Permalink
Back To Top
Browse files Browse the repository at this point in the history
  • Loading branch information
RishabxBhardwaj committed Oct 24, 2024
1 parent 494b4d6 commit ad1d275
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,11 @@ <h2 class="text-3xl font-bold mb-4 dark:text-white">Open Source</h2>
</div>

<!-- Go to Top Button -->
<button onclick="topFunction()" id="backToTopBtn" title="Go to top"
class="fixed bottom-8 right-8 bg-blue-600 text-white p-4 rounded-full shadow-lg hover:bg-blue-500 transition-opacity duration-300 hidden">
<button onclick="topFunction()" id="backToTopBtn" title="Go to top" class="back-to-top hidden">
Go Top
</button>


<script>
// Scroll to top of the page
function topFunction() {
Expand Down

0 comments on commit ad1d275

Please sign in to comment.