forked from codingkatty/mathpylearn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
learn.html
44 lines (40 loc) · 1.75 KB
/
learn.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
<!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</title>
<link rel="stylesheet" href="styles.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/ace/1.4.12/ace.js"></script>
<script src="https://cdn.jsdelivr.net/pyodide/v0.22.1/full/pyodide.js"></script>
</head>
<body id="learn">
<div class="navbar">
<a href="index.html">Home</a>
<a href="learn.html" class="active">Learn</a>
<a href="challenge.html">Challenge</a>
</div>
<div class="content">
<h2>Python Lessons</h2>
<p>Welcome to the Python lessons! Choose a lesson below to get started. You can write and execute your code in the editor provided.</p>
<ul id="learn-list">
<li><a href="#" onclick="showEditor('Hello World')">Hello World</a></li>
<li><a href="#" onclick="showEditor('Variables')">Variables</a></li>
<li><a href="#" onclick="showEditor('Conditionals')">Conditionals</a></li>
<li><a href="#" onclick="showEditor('Loops')">Loops</a></li>
<li><a href="#" onclick="showEditor('Functions')">Functions</a></li>
</ul>
<div id="editor-container">
<div id="editor"></div>
<div id="terminal-container">
<div id="terminal"></div>
<div id="button-container">
<button id="run-button" onclick="runCode()">Run Code</button>
<button id="clear-button" onclick="clearTerminal()">Clear Terminal</button> <!-- Clear Terminal Button -->
</div>
</div>
</div>
</div>
<script src="script.js"></script>
</body>
</html>