-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
39 lines (38 loc) · 1.88 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
<html>
<head>
<link rel="stylesheet" href="https://pyscript.net/latest/pyscript.css" />
<link rel="stylesheet" href="./main.css" />
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL" crossorigin="anonymous"></script>
<script defer src="https://pyscript.net/latest/pyscript.js"></script>
</head>
<body>
<nav class="navbar bg-dark" data-bs-theme="dark">
<div class="container-fluid">
<span class="navbar-brand h1">ECG Analysis</span>
</div>
</nav>
<div id="container">
<div>
<h1 class="display-4">Output Plots</h1>
<div id="mpl"></div>
</div>
<div>
<h1 class="display-4">Output Data</h1>
<div id="signals"></div>
</div>
<div id="button-container">
<label id="upload_data" type="button" class="btn btn-secondary" >Upload Data<input type="file"></label>
<button id="analyse_button" type="button" class="btn btn-success" hidden py-click="do_thing()">Analyse Data</button>
<button id="download_data" type="button" class="btn btn-primary" hidden>Download Data</button>
</div>
</div>
<div id="input_data" hidden></div>
<py-config>
packages = ["numpy", "matplotlib", "neurokit2", "requests"]
files = ["./main.py"]
</py-config>
<script type="py" src="./main.py"></script>
<script src="./main.js"></script>
</body>
</html>