rougail-web/index.html

38 lines
1.1 KiB
HTML
Raw Normal View History

2024-11-07 07:55:46 +01:00
<!doctype html>
<html>
<head>
<!-- Recommended meta tags -->
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<!-- PyScript CSS -->
<link rel="stylesheet" href="https://pyscript.net/releases/2024.1.1/core.css">
<!-- This script tag bootstraps PyScript -->
<script type="module" src="https://pyscript.net/releases/2024.1.1/core.js"></script>
<!-- for splashscreen -->
<style>
#loading { outline: none; border: none; background: transparent }
</style>
<script type="module">
const loading = document.getElementById('loading');
addEventListener('py:ready', () => loading.close());
loading.showModal();
</script>
<title>PyScript Hello World</title>
</head>
<body>
<dialog id="loading">
<h1>Loading...</h1>
</dialog>
<div id="result"/>
<section class="pyscript">
<script type="py" src="./main.py" config="./pyscript.toml"></script>
</section>
</body>
</html>