test lcoation-log

master
louisa 1 year ago
parent 543b477cca
commit ab70954133

@ -0,0 +1,3 @@
{
"liveServer.settings.port": 5501
}

@ -45,11 +45,7 @@ void sendLoRaData(String data)
Serial.println(data); Serial.println(data);
LoRa.beginPacket(); LoRa.beginPacket();
<<<<<<< HEAD
LoRa.print("node3 " + data); LoRa.print("node3 " + data);
=======
LoRa.print(data);
>>>>>>> 26fbc8fed3644b1eef44268b84d09fc87be556a3
LoRa.endPacket(); LoRa.endPacket();
} }

@ -22,6 +22,8 @@
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';
document.getElementById('location-log').display = block;
} else if (node === 'node4' && value === '21') { } else if (node === 'node4' && value === '21') {
// Change the background color to blue // Change the background color to blue
document.body.style.backgroundColor = 'blue'; document.body.style.backgroundColor = 'blue';
@ -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>

@ -331,3 +331,7 @@ button:active{
z-index: -10; z-index: -10;
} }
.embed{width: 100%} .embed{width: 100%}
#location-log{
display: none;
}
Loading…
Cancel
Save