From 13e1ed9f34439bbbe8f588a7a76038e01edde25d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20Balzarotti?= Date: Wed, 22 Feb 2023 03:48:14 +0100 Subject: [PATCH] eval scheme from index page --- dist/server.js | 4 ++ templates/index.html | 125 ++++++++++++++++++++++++------------------- 2 files changed, 75 insertions(+), 54 deletions(-) diff --git a/dist/server.js b/dist/server.js index 51e692b..6fb9b23 100644 --- a/dist/server.js +++ b/dist/server.js @@ -199,6 +199,10 @@ function respond_manual(response) { manual_modal({'dismissed': true}); } +function eval_scheme(id) { + socket.emit('eval scheme', document.getElementById(id).value) +} + function select_recipe(idx) { localstate.recipe = idx; applyState(); diff --git a/templates/index.html b/templates/index.html index 0d77421..9c29c99 100644 --- a/templates/index.html +++ b/templates/index.html @@ -5,61 +5,78 @@ {% endblock %} {% block content %}
-
-
-
-
-

- Sensors -

-
-
-
-
-
-
-
-
-

- Actuators -

-
-
-
-
-
-
-
-
-

- Sensors Data -

-
-
-
-
- -
- -
- -
-
-
-
-
-
+
+
+
+
+

+ Sensors +

+
+
+
+
-
-
-
-
-
-
+
+
+
+

+ Actuators +

+
+
+
+
+
+
+
+

+ Sensors Data +

+
+
+
+
+ +
+ +
+ +
+
+
+
+
+
+
+
+

+ Manual Control +

+
+
+
+ +
+
+
+
+
+
+
+
+
+
+
{% endblock %}