Skip to content

Commit

Permalink
Merge pull request #65 from pranavsuriya-sr/main
Browse files Browse the repository at this point in the history
  • Loading branch information
codingkatty authored Oct 14, 2024
2 parents eacf9b5 + f56a098 commit a07e5e1
Show file tree
Hide file tree
Showing 6 changed files with 127 additions and 4 deletions.
24 changes: 23 additions & 1 deletion about.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<title>About Math 4 Python</title>
<link rel="shortcut icon" href="Untitled design1.ico" type="image/x-icon">
<link rel="stylesheet" href="styles.css">
<link href = "https://fonts.googleapis.com/icon?family=Material+Icons" rel = "stylesheet">

<link href="https://fonts.googleapis.com/css2?family=Lobster&family=Roboto:wght@400;700&display=swap" rel="stylesheet">

Expand Down Expand Up @@ -202,8 +203,29 @@ <h3>Follow Us</h3>
<p>&copy; 2024 Math 4 Python. All Rights Reserved.</p>
</div>
</footer>

<button onclick="topFunction()" id="nav-top"><i class = "material-icons">arrow_upward</i> </button>

<script src="script.js"></script>

<script>
let mybutton = document.getElementById("nav-top");
window.onscroll = function() {scrollFunction()};

function scrollFunction() {
if (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) {
mybutton.style.display = "block";
} else {
mybutton.style.display = "none";
}
}
function topFunction() {
window.scrollTo({
top: 0,
behavior: "smooth"
});
}
</script>

</body>

</html>
23 changes: 22 additions & 1 deletion challenge.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<link rel="stylesheet" href="hamburger_menu.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
<link href="https://fonts.googleapis.com/css2?family=Lobster&family=Roboto:wght@400;700&display=swap" rel="stylesheet">
<link href = "https://fonts.googleapis.com/icon?family=Material+Icons" rel = "stylesheet">

<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&family=Roboto+Mono&display=swap" rel="stylesheet">
</head>
Expand Down Expand Up @@ -114,7 +115,27 @@ <h3>Follow Us</h3>
<p>&copy; 2024 Math 4 Python. All Rights Reserved.</p>
</div>
</footer>

<button onclick="topFunction()" id="nav-top"><i class = "material-icons">arrow_upward</i> </button>

<script src="script.js"></script>
<script>
let mybutton = document.getElementById("nav-top");
window.onscroll = function() {scrollFunction()};

function scrollFunction() {
if (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) {
mybutton.style.display = "block";
} else {
mybutton.style.display = "none";
}
}
function topFunction() {
window.scrollTo({
top: 0,
behavior: "smooth"
});
}
</script>

</body>
</html>
22 changes: 21 additions & 1 deletion faq.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<link rel="stylesheet" href="hamburger_menu.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
<link href="https://fonts.googleapis.com/css2?family=Lobster&family=Roboto:wght@400;700&display=swap" rel="stylesheet">
<link href = "https://fonts.googleapis.com/icon?family=Material+Icons" rel = "stylesheet">

<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&family=Roboto+Mono&display=swap" rel="stylesheet">
</head>
Expand Down Expand Up @@ -188,7 +189,26 @@ <h3>Follow Us</h3>
<p>&copy; 2024 Math 4 Python. All Rights Reserved.</p>
</div>
</footer>

<button onclick="topFunction()" id="nav-top"><i class = "material-icons">arrow_upward</i> </button>

<script src="script.js"></script>
<script>
let mybutton = document.getElementById("nav-top");
window.onscroll = function() {scrollFunction()};

function scrollFunction() {
if (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) {
mybutton.style.display = "block";
} else {
mybutton.style.display = "none";
}
}
function topFunction() {
window.scrollTo({
top: 0,
behavior: "smooth"
});
}
</script>
</body>
</html>
22 changes: 21 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<!-- <link rel="shortcut icon" href="Untitled design1.ico" type="image/x-icon">-->
<link rel="stylesheet" href="styles.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
<link href = "https://fonts.googleapis.com/icon?family=Material+Icons" rel = "stylesheet">
</head>
<body id="home">
<div class="navbar">
Expand Down Expand Up @@ -93,7 +94,26 @@ <h3>Follow Us</h3>
<p>&copy; 2024 Math 4 Python. All Rights Reserved.</p>
</div>
</footer>

<button onclick="topFunction()" id="nav-top"><i class = "material-icons">arrow_upward</i> </button>
<script src="script.js"></script>

<script>
let mybutton = document.getElementById("nav-top");
window.onscroll = function() {scrollFunction()};

function scrollFunction() {
if (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) {
mybutton.style.display = "block";
} else {
mybutton.style.display = "none";
}
}
function topFunction() {
window.scrollTo({
top: 0,
behavior: "smooth"
});
}
</script>
</body>
</html>
21 changes: 21 additions & 0 deletions learn.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
<link href="https://fonts.googleapis.com/css2?family=Lobster&family=Roboto:wght@400;700&display=swap" rel="stylesheet">

<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&family=Roboto+Mono&display=swap" rel="stylesheet">
<link href = "https://fonts.googleapis.com/icon?family=Material+Icons" rel = "stylesheet">

</head>
<body id="learn" onload="showEditor('Untitled')">

Expand Down Expand Up @@ -158,7 +160,26 @@ <h3>Follow Us</h3>
<p>&copy; 2024 Math 4 Python. All Rights Reserved.</p>
</div>
</footer>
<button onclick="topFunction()" id="nav-top"><i class = "material-icons">arrow_upward</i> </button>

<script src="script.js"></script>
<script>
let mybutton = document.getElementById("nav-top");
window.onscroll = function() {scrollFunction()};

function scrollFunction() {
if (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) {
mybutton.style.display = "block";
} else {
mybutton.style.display = "none";
}
}
function topFunction() {
window.scrollTo({
top: 0,
behavior: "smooth"
});
}
</script>
</body>
</html>
19 changes: 19 additions & 0 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -488,3 +488,22 @@ body.dark-theme .cta-button:hover {
background-color: #0056b3;
}

#nav-top {
display: none;
position: fixed;
bottom: 20px;
right: 30px;
z-index: 99;
border: none;
outline: none;
background-color: #0056b3;
color: white;
cursor: pointer;
padding: 10px;
border-radius: 70px;
font-size: 18px;
}

#nav-top:hover {
background-color: #555;
}

0 comments on commit a07e5e1

Please sign in to comment.