-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathindex.html
59 lines (51 loc) · 1.65 KB
/
index.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Pyscript Todo</title>
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="https://pyscript.net/alpha/pyscript.css" />
<script defer src="https://pyscript.net/alpha/pyscript.js"></script>
</head>
<body>
<py-env>
- autoclose_loader: true
- runtimes:
-
src: "/pyodide.js"
name: pyodide-0.20
lang: python
- paths:
- script/app.py
</py-env>
<section class="todo">
<div class="container">
<div class="row justify-content-center mt-5">
<div class="col-lg-8 text-center">
<h2 class="lead">Pyscript App</h2>
</div>
<div class="col-lg-6 mt-5">
<div class="todo-card">
<div class="t-line">
<div class="todo-box" >
<div class="row" id="todo-row">
<div class="form-group">
<input type="text" name="addtodo" id="taskadd" class="form-control">
<button pys-onClick="create" id="add" type="button" class="btn shadow-none mt-2 btn-outline-light btn-add btn-primary" >Add</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<py-script>
from app import GetTasks,delete,create
from pyodide import create_proxy
</py-script>
</body>
</html>