index.html

This commit is contained in:
riqvip 2024-09-15 19:33:32 +10:00 committed by GitHub
parent bedf1939bb
commit 431ec6e44a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -21,9 +21,22 @@
<p>Follow this tutorial for a step-by-step process on sideloading apps. (Other text here)</p>
</section>
</main>
<footer>
<p>&copy; No copyright (for now)</p>
</footer>
<button id="backToTop" onclick="scrollToTop()">Back to Top</button>
</div>
<script>
function scrollToTop() {
window.scrollTo({ top: 0, behavior: 'smooth' });
}
window.onscroll = function() {
const button = document.getElementById('backToTop');
if (document.body.scrollTop > 300 || document.documentElement.scrollTop > 300) {
button.style.display = "block";
} else {
button.style.display = "none";
}
};
</script>
</body>
</html>