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