Files
pyscript/core/tests/manual/no_sab/index.html
2024-10-01 12:51:31 +02:00

26 lines
579 B
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="../../../dist/core.css">
<script type="module">
import { PyWorker } from '../../../dist/core.js';
const { sync } = await PyWorker(
'./worker.py',
{
config: {
sync_main_only: true
}
}
);
document.documentElement.classList.add(
await sync.get_class()
);
document.body.textContent = await sync.get_class();
</script>
</head>
</html>