-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
27 lines (25 loc) · 1.13 KB
/
index.html
File metadata and controls
27 lines (25 loc) · 1.13 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Cool Calculator</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/brython/3.10.5/brython.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/brython/3.10.5/brython_stdlib.min.js"></script>
</head>
<body onload="brython()">
<input type="text" id="user_in" placeholder="Save your username!">
<span id="user_out"></span>
<br>
<span>Powered by Brython! (Browser Python)</span>
<br>
<span>Addition/Concatenation: +, Subtraction: -, Multiplication: *, Division: /, Modulo: %, Exponents: **, Floor Division: //</span>
<br>
<span>Assignment operators are not supported. Keep in mind, anything that is syntactical in Python (<code>n = *</code>) should be supported.</span>
<br>
<span>For a more direct access to Python, enter "<code>__import__('interpreter').Interpreter()</code>" into the input box.</span>
<br>
<input type="text" id="text" placeholder="Your equation here!">
<span id="output"></span>
<script type="text/python" id="script1" src="src/main.py"></script>
</body>
</html>