mirror of
https://github.com/pyscript/pyscript.git
synced 2026-05-20 12:00:18 -04:00
committed by
GitHub
parent
c0d45d368b
commit
6a3e2834b6
@@ -6,27 +6,6 @@
|
||||
<title>PyTerminal</title>
|
||||
<link rel="stylesheet" href="../dist/core.css">
|
||||
<script type="module" src="../dist/core.js"></script>
|
||||
<style>
|
||||
.py-editor-box, .mpy-editor-box {
|
||||
padding: .5rem;
|
||||
position: relative;
|
||||
}
|
||||
.py-editor-run-button, .mpy-editor-run-button {
|
||||
position: absolute;
|
||||
right: .5rem;
|
||||
top: .5rem;
|
||||
opacity: 0;
|
||||
transition: opacity .25s;
|
||||
}
|
||||
.py-editor-box:hover .py-editor-run-button,
|
||||
.mpy-editor-box:hover .mpy-editor-run-button,
|
||||
.py-editor-run-button:focus,
|
||||
.py-editor-run-button:disabled,
|
||||
.mpy-editor-run-button:focus,
|
||||
.mpy-editor-run-button:disabled {
|
||||
opacity: 1;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<script type="py-editor">
|
||||
@@ -37,6 +16,7 @@
|
||||
import sys
|
||||
print(sys.version)
|
||||
a = 42
|
||||
print(a)
|
||||
</script>
|
||||
<script type="mpy-editor" env="shared">
|
||||
if not 'a' in globals():
|
||||
|
||||
Reference in New Issue
Block a user