From 6fe1c973269f9e5a89204b1cd8307fbb4aef9d77 Mon Sep 17 00:00:00 2001 From: louisa Date: Mon, 19 Jun 2023 17:03:55 +0200 Subject: [PATCH] dynamic text test --- public/index.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/public/index.html b/public/index.html index b044b48..c42424e 100644 --- a/public/index.html +++ b/public/index.html @@ -18,6 +18,8 @@ // Split the data into separate parts const [node, value] = data.split(' '); + + document.getElementById('log-text').textContent = 'user ${value} entered zone ${node}'; if (node === 'node3' && value === '15') { // Change the background color to red @@ -75,7 +77,7 @@
-

user 15 entered zone 4

+