diff --git a/public/index.html b/public/index.html index 27c4e27..b0c8cf0 100644 --- a/public/index.html +++ b/public/index.html @@ -22,8 +22,8 @@ if (node === 'node3' && value === '15') { // Change the background color to red document.body.style.backgroundColor = 'red'; - document.getElementById('location-log').display = block; - + document.getElementById('location-log').style.display = block; + } else if (node === 'node4' && value === '21') { // Change the background color to blue document.body.style.backgroundColor = 'blue';