Marthee commited on
Commit
94a08ee
·
verified ·
1 Parent(s): 88e5483

Update templates/proposed-GUI.html

Browse files
Files changed (1) hide show
  1. 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');