Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
RichardBJ committed Dec 4, 2023
1 parent 79ccecc commit f2be20b
Showing 1 changed file with 11 additions and 20 deletions.
31 changes: 11 additions & 20 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
<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">
Expand All @@ -20,7 +22,7 @@ <h1 class="display-4">Output Plots</h1>
</div>
<div>
<h1 class="display-4">Data</h1>
<div id="signals"></div>
<div id="signals"></div>++
</div>
<div class="Input">
<table id="InputTable">
Expand All @@ -42,28 +44,19 @@ <h1 class="display-4">Data</h1>
<th> <label id="upload_button" type="button" class="btn btn-secondary" >Upload Data<input type="file"></label> </th>
</td>
</tr>
<tr>
<td><th><p>Analyse</p></th>
<tr><td><th><p>Analyse</p></th>
<th><button id="analyse_button" type="button" class="btn btn-success" hidden py-click="runpy()">Analyse Data</button></th></td>
</tr>
<tr>
<td>
<th><p>Processing</p></th>
<th><button id="processing" type="button" class="btn btn-danger" hidden>PROCESSING!</button></th>
</td>
<td><th><p>Processing</p></th>
<th><button id="processing" type="button" class="btn btn-danger" hidden>PROCESSING!</button></th></td>
</tr>
</tr>
<tr>
<td>
<th><p>Download</p></th>
<th><button id="download_data" type="button" class="btn btn-primary" hidden>Download Data</button></th>
</td>
<tr><td><th><p>Download</p></th>
<th><button id="download_data" type="button" class="btn btn-primary" hidden>Download Data</button></th></td>
</tr>


</tbody>
</table>

</table>
</div>
</div>
<div id="input_data" hidden></div>
Expand Down Expand Up @@ -91,9 +84,7 @@ <h1 class="display-4">Data</h1>
import pyscript
import time
import js




def runpy():
pbutton = js.document.getElementById("processing")
abutton = js.document.getElementById("analyse_button")
Expand All @@ -104,7 +95,7 @@ <h1 class="display-4">Data</h1>
do_thing()
pbutton.hidden = True

</py-script>
</py-script>

</body>

Expand Down

0 comments on commit f2be20b

Please sign in to comment.