index.html
This commit is contained in:
parent
bedf1939bb
commit
431ec6e44a
1 changed files with 16 additions and 3 deletions
19
index.html
19
index.html
|
|
@ -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>© 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>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue