Skip to content

Commit

Permalink
Update info.html
Browse files Browse the repository at this point in the history
  • Loading branch information
thelovelightliveventure authored Jun 26, 2023
1 parent e867d72 commit f0f3e5e
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions info.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,27 +18,6 @@
</header>
</head>
<body>
<button onclick="topFunction()" id="myBtn" title="Go to top">Top</button>
<script>
let mybutton = document.getElementById("myBtn");

// When the user scrolls down 20px from the top of the document, show the button
window.onscroll = function() {scrollFunction()};

function scrollFunction() {
if (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) {
mybutton.style.display = "block";
} else {
mybutton.style.display = "none";
}
}

// When the user clicks on the button, scroll to the top of the document
function topFunction() {
document.body.scrollTop = 0;
document.documentElement.scrollTop = 0;
}
</script>
<!-- Include sections for C, JavaScript, and HTML and CSS.-->
<section class="lovePL" id="C">
<h2>Why I love <b id="highlight">C</b></h2>
Expand Down

0 comments on commit f0f3e5e

Please sign in to comment.