Browse Source

frontend

main
Hendrik Langer 4 years ago
parent
commit
43d0ebede0
  1. 8
      raspberry/roberto/views/frontend/templates/index.html

8
raspberry/roberto/views/frontend/templates/index.html

@ -23,7 +23,7 @@
position: absolute; position: absolute;
bottom: 40px; bottom: 40px;
left: 0; left: 0;
width: 50%; width: 40%;
height: 33%; height: 33%;
pointer-events: all; pointer-events: all;
} }
@ -31,7 +31,7 @@
position: absolute; position: absolute;
bottom: 40px; bottom: 40px;
right: 0; right: 0;
width: 50%; width: 40%;
height: 33%; height: 33%;
pointer-events: all; pointer-events: all;
} }
@ -165,9 +165,9 @@ socket.on('battery', (data) => {
console.log('Data received: ',data); console.log('Data received: ',data);
var canvas = document.getElementById("textoverlay"); var canvas = document.getElementById("textoverlay");
var ctx = canvas.getContext("2d"); var ctx = canvas.getContext("2d");
ctx.font = "24px Arial"; ctx.font = "14px Arial";
ctx.fillStyle = "blue"; ctx.fillStyle = "blue";
ctx.fillText(data, canvas.width/3, 30); ctx.fillText(data, 3*canvas.width/4, 30);
}); });
function playStream(videoElement, hostname, port, path, configuration, reportErrorCB) { function playStream(videoElement, hostname, port, path, configuration, reportErrorCB) {

Loading…
Cancel
Save