|
|
|
@ -22,12 +22,14 @@
|
|
|
|
|
if (node === 'node3' && value === '15') {
|
|
|
|
|
// Change the background color to red
|
|
|
|
|
document.body.style.backgroundColor = 'red';
|
|
|
|
|
} else if (node === 'node4' && value === '21') {
|
|
|
|
|
// Change the background color to blue
|
|
|
|
|
document.body.style.backgroundColor = 'blue';
|
|
|
|
|
} else {
|
|
|
|
|
// Restore the default background color
|
|
|
|
|
document.body.style.backgroundColor = rgb(26, 26, 26);
|
|
|
|
|
document.getElementById('location-log').display = block;
|
|
|
|
|
|
|
|
|
|
} else if (node === 'node4' && value === '21') {
|
|
|
|
|
// Change the background color to blue
|
|
|
|
|
document.body.style.backgroundColor = 'blue';
|
|
|
|
|
} else {
|
|
|
|
|
// Restore the default background color
|
|
|
|
|
document.body.style.backgroundColor = rgb(26, 26, 26);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
function sendMessage() {
|
|
|
|
@ -71,7 +73,10 @@
|
|
|
|
|
</div> -->
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="section" id="location-log">
|
|
|
|
|
|
|
|
|
|
<p>user 15 entered zone 4</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="section" id="nav-console">
|
|
|
|
|
|
|
|
|
|
<p>DISTANCE: <span id="distance">0</span> km</p>
|
|
|
|
|