|
|
|
@ -18,11 +18,9 @@
|
|
|
|
|
|
|
|
|
|
// Split the data into separate parts
|
|
|
|
|
const [node, value] = data.split(' ');
|
|
|
|
|
|
|
|
|
|
if (node === 'node4' && value === '21') {
|
|
|
|
|
// Change the background color to red
|
|
|
|
|
document.body.style.backgroundColor = 'red';
|
|
|
|
|
} else {
|
|
|
|
|
if (node === 'node3' && value === '15'){
|
|
|
|
|
document.body.style.backgroundColor = 'red';}
|
|
|
|
|
else {
|
|
|
|
|
// Restore the default background color
|
|
|
|
|
document.body.style.backgroundColor = 'white';
|
|
|
|
|
}
|
|
|
|
|