mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-19 18:27:29 -05:00
* Fix #2114 - Cleanup the test folder + automation * Merged both test and tests into a single folder
27 lines
801 B
HTML
27 lines
801 B
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>PyScript FFI</title>
|
|
<link rel="stylesheet" href="../../dist/core.css">
|
|
<script type="module" src="../../dist/core.js"></script>
|
|
</head>
|
|
<body>
|
|
<script type="mpy">
|
|
from pyscript import document
|
|
from pyscript.ffi import to_js
|
|
document.documentElement.classList.add(
|
|
to_js({"ok": "mpy"}).ok
|
|
)
|
|
</script>
|
|
<script type="py">
|
|
from pyscript import document
|
|
from pyscript.ffi import to_js
|
|
document.documentElement.classList.add(
|
|
to_js({"ok": "py"}).ok
|
|
)
|
|
</script>
|
|
</body>
|
|
</html>
|