@ -2,13 +2,13 @@ var socket = io();
socket.on('data', function(data){
console.log(data);
document.getElementById('sample').style.opacity = data+"%";
document.getElementById('sample').style.opacity = data + "%";
});
socket.on('node5', function(sensor){
console.log(sensor);
document.getElementById("file").value = sensor;
if(distance5>0.02 && sensor==50){
if(distance5 > 0.02 && sensor == 50){
alert('u won.');
}