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> <p>Follow this tutorial for a step-by-step process on sideloading apps. (Other text here)</p>
</section> </section>
</main> </main>
<footer> <button id="backToTop" onclick="scrollToTop()">Back to Top</button>
<p>&copy; No copyright (for now)</p>
</footer>
</div> </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> </body>
</html> </html>