Spaces:
Sleeping
Sleeping
Update templates/proposed-GUI.html
Browse files- templates/proposed-GUI.html +13 -0
templates/proposed-GUI.html
CHANGED
|
@@ -613,7 +613,20 @@
|
|
| 613 |
<script >
|
| 614 |
|
| 615 |
///////////////////////////////////////////////BEGIN JS CODE//////////////////////////////////////////////////
|
|
|
|
| 616 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 617 |
|
| 618 |
function updateProgressBar(value) {
|
| 619 |
const progressBar = document.getElementById('progress');
|
|
|
|
| 613 |
<script >
|
| 614 |
|
| 615 |
///////////////////////////////////////////////BEGIN JS CODE//////////////////////////////////////////////////
|
| 616 |
+
var socket = io.connect("https://marthee-measurementtesting.hf.space");
|
| 617 |
|
| 618 |
+
socket.on("connect", function () {
|
| 619 |
+
console.log("Connected to server");
|
| 620 |
+
socket.emit("get_project_names");
|
| 621 |
+
});
|
| 622 |
+
|
| 623 |
+
socket.on("progress", function (msg) {
|
| 624 |
+
console.log("Progress:", msg.data);
|
| 625 |
+
});
|
| 626 |
+
|
| 627 |
+
socket.on("project_data", function (msg) {
|
| 628 |
+
console.log("Received project data:", msg.data);
|
| 629 |
+
});
|
| 630 |
|
| 631 |
function updateProgressBar(value) {
|
| 632 |
const progressBar = document.getElementById('progress');
|