|
|
@ -19,7 +19,7 @@
|
|
|
|
// Split the data into separate parts
|
|
|
|
// Split the data into separate parts
|
|
|
|
const [node, value] = data.split(' ');
|
|
|
|
const [node, value] = data.split(' ');
|
|
|
|
|
|
|
|
|
|
|
|
document.getElementById('log-text').textContent = 'user ${value} entered zone ${node}';
|
|
|
|
document.getElementById('log-text').textContent = `user ${value} entered zone ${node}`;
|
|
|
|
|
|
|
|
|
|
|
|
if (node === 'node3' && value === '15') {
|
|
|
|
if (node === 'node3' && value === '15') {
|
|
|
|
// Change the background color to red
|
|
|
|
// Change the background color to red
|
|
|
|