-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathtest.html
More file actions
42 lines (39 loc) · 1.33 KB
/
test.html
File metadata and controls
42 lines (39 loc) · 1.33 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<title>python</title>
<link rel="stylesheet" href="style.css" />
<script type="module" src="/dist/index.js"></script>
</head>
<body>
<script type="pyodide">
def print_version(event):
import sys
print(sys.version)
print("bad.", file=sys.stderr)
</script>
<button pyodide-click="print_version">python version</button>
<script type="micropython">
def print_version(event):
import sys
print(sys.version)
print("bad.", file=sys.stderr)
</script>
<button micropython-click="print_version">micropython version</button>
<script type="ruby-wasm-wasi">
def print_version(event)
print "ruby #{ RUBY_VERSION }p#{ RUBY_PATCHLEVEL }"
end
</script>
<button ruby-wasm-wasi-click="print_version">ruby version</button>
<script type="wasmoon">
function print_version(event)
print(_VERSION)
printErr(123)
end
</script>
<button wasmoon-click="print_version">lua version</button>
</body>
</html>