File size: 1,654 Bytes
8621d18 |
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 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<meta http-equiv="X-UA-Compatible" content="ie=edge"/>
<link rel="stylesheet" href="/static/css/site.css"/>
<title>PyPWA Weather</title>
<link rel="manifest" href="/static/manifest.json">
<link rel="stylesheet" href="/static/pyscript/pyscript.css"/>
<script defer src="/static/pyscript/pyscript.js"></script>
<py-config>
- autoclose_loader: true
- runtimes:
-
src: "/static/pyodide/pyodide.js"
name: pyodide-0.20
lang: python
</py-config>
<py-env>
- paths:
- /static/python/client.py
- /static/python/weather_api.py
</py-env>
</head>
<body id="the_body">
<main>
<nav>
<h1><strong>PyPWA Weather</strong> (by <a href="https://twitter.com/mkennedy" target="_blank">@mkennedy</a>)
</h1>
<ul>
<li><a id="refresh">refresh</a></li>
</ul>
</nav>
<div id="weather" class="hidden">
<div id="image-container">
<img id="image" src="#"/>
</div>
<div id="temp">
</div>
<div id="forecast">
</div>
</div>
<div style="clear: both;"></div>
</main>
<footer>
<div class="footer-content">
A pyscript demo app by <a href="https://twitter.com/mkennedy" target="_blank">@mkennedy</a>, copyright 2022.
</div>
</footer>
<py-script src="/static/python/client.py"></py-script>
<script src="/static/js/pwa-scaffold.js"></script>
</body>
</html> |