forked from codingkatty/mathpylearn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchallenge.html
128 lines (120 loc) · 6.25 KB
/
challenge.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Math 4 Python - Challenges</title>
<link rel="shortcut icon" href="Untitled design1.ico" type="image/x-icon">
<link rel="stylesheet" href="styles.css">
<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>
<body id="challenge">
<div class="navbar">
<a class="logo" href="index.html"><img src="logonew.svg" width="40"></a>
<div class="nav-links">
<a href="index.html">Home</a>
<a href="about.html">About</a>
<a href="learn.html">Learn</a>
<a href="challenge.html" class="active">Challenge</a>
<a href="faq.html">FAQs</a>
</div>
<div class="theme-toggle-wrapper">
<button style="cursor: pointer;" id="theme-toggle">
<i class="fas fa-sun"></i>
<i class="fas fa-moon"></i>
</button>
<a href="javascript:void(0);" class="icon" onclick="openMobileMenu()">
<i class="fa fa-bars"></i>
<i class="fa fa-times" style="display: none;"></i>
</a>
</div>
</div>
<!-- Main Content -->
<div class="content">
<h2><i class="fas fa-trophy"></i> Python Challenges</h2>
<p>Welcome to the challenges section! Test your skills with various coding challenges.</p>
<div class="progress-container">
<h3>Challenge Progress</h3>
<div class="progress-bar">
<div id="challenge-progress" class="progress"></div>
</div>
<button id="challenge-reset-btn" class="reset-btn">Reset Progress</button>
</div>
<div class="challenge-container">
<ul id="challenge-list">
<li><a href="#" onclick="viewChallenge('Basic Math Challenge')"><i class="fas fa-calculator"></i> Basic Math Challenge</a></li>
<li><a href="#" onclick="viewChallenge('Logic Challenge')"><i class="fas fa-brain"></i> Logic Challenge</a></li>
<li><a href="#" onclick="viewChallenge('Data Structures Challenge')"><i class="fas fa-project-diagram"></i> Data Structures Challenge</a></li>
<li><a href="#" onclick="viewChallenge('String Manipulation')"><i class="fas fa-font"></i> String Manipulation Challenge</a></li>
<li><a href="#" onclick="viewChallenge('File Handling Challenge')"><i class="fas fa-file-alt"></i> File Handling Challenge</a></li>
<li><a href="#" onclick="viewChallenge('Dynamic Programming Challenge')"><i class="fas fa-chart-line"></i> Dynamic Programming Challenge</a></li>
<li><a href="#" onclick="viewChallenge('Object-Oriented Programming')"><i class="fas fa-cubes"></i> Object-Oriented Programming Challenge</a></li>
<li><a href="#" onclick="viewChallenge('Recursion')"><i class="fas fa-redo"></i> Recursion Challenge</a></li>
<li><a href="#" onclick="viewChallenge('Search Algorithm')"><i class="fas fa-search"></i> Search Algorithm Challenge</a></li>
<li><a href="#" onclick="viewChallenge('Array')"><i class="fas fa-list-ol"></i> Array Challenge</a></li>
<li><a href="#" onclick="viewChallenge('Graph')"><i class="fas fa-project-diagram"></i> Graph Algorithm Challenge</a></li>
</ul>
<section class="challenge-description" id="challenge-description">
<h3>Challenge Description</h3>
<p>Select a challenge from the list to view its description and instructions.</p>
</section>
</div>
</div>
<!-- Footer -->
<footer>
<div class="footer-content">
<div class="footer-section about">
<h3>Math 4 Python</h3>
<p>Enhance your Python skills while solving math-focused challenges. Learn, code, and improve through interactive lessons with real-time feedback.</p>
<p><i class="fas fa-envelope"></i> [email protected]</p>
<p><i class="fas fa-phone"></i> +123 456 7890</p>
</div>
<div class="footer-section links">
<h3>Quick Links</h3>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="about.html">About</a></li>
<li><a href="learn.html">Learn</a></li>
<li><a href="challenge.html">Challenge</a></li>
<li><a href="faq.html">FAQs</a></li>
</ul>
</div>
<div class="footer-section social">
<h3>Follow Us</h3>
<a href="#"><i class="fab fa-facebook"></i></a>
<a href="#"><i class="fab fa-twitter"></i></a>
<a href="#"><i class="fab fa-linkedin"></i></a>
<a href="#"><i class="fab fa-github"></i></a>
</div>
</div>
<div class="footer-bottom">
<p>© 2024 Math 4 Python. All Rights Reserved.</p>
</div>
</footer>
<!-- Scroll to Top Button -->
<button onclick="topFunction()" id="nav-top"><i class="material-icons">arrow_upward</i></button>
<!-- External JavaScript -->
<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>