From 43d0ebede049b75f27584a62b59a40810c0c6a28 Mon Sep 17 00:00:00 2001 From: Hendrik Langer Date: Tue, 4 Aug 2020 16:20:28 +0200 Subject: [PATCH] frontend --- raspberry/roberto/views/frontend/templates/index.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/raspberry/roberto/views/frontend/templates/index.html b/raspberry/roberto/views/frontend/templates/index.html index 77871ea..739334f 100644 --- a/raspberry/roberto/views/frontend/templates/index.html +++ b/raspberry/roberto/views/frontend/templates/index.html @@ -23,7 +23,7 @@ position: absolute; bottom: 40px; left: 0; - width: 50%; + width: 40%; height: 33%; pointer-events: all; } @@ -31,7 +31,7 @@ position: absolute; bottom: 40px; right: 0; - width: 50%; + width: 40%; height: 33%; pointer-events: all; } @@ -165,9 +165,9 @@ socket.on('battery', (data) => { console.log('Data received: ',data); var canvas = document.getElementById("textoverlay"); var ctx = canvas.getContext("2d"); - ctx.font = "24px Arial"; + ctx.font = "14px Arial"; 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) {