From e6ae999f4311402ad888f109d7390cc8bdb1f3c4 Mon Sep 17 00:00:00 2001 From: hydrant Date: Tue, 30 Oct 2018 18:55:43 +0100 Subject: [PATCH] Fixed speedometer showing up at login --- Client/Speedometer/cef/css/style.css | 4 ++-- Client/Speedometer/cef/speedometer.html | 15 ++++++--------- 2 files changed, 8 insertions(+), 11 deletions(-) diff --git a/Client/Speedometer/cef/css/style.css b/Client/Speedometer/cef/css/style.css index c8ff5ab8..094f9d12 100644 --- a/Client/Speedometer/cef/css/style.css +++ b/Client/Speedometer/cef/css/style.css @@ -22,12 +22,12 @@ html { body { margin: 0; - opacity: 1; + opacity: 0; transition: opacity 1s; } body.fade { - opacity: 0; + opacity: 1; } article, aside, details, figcaption, figure, footer, header, main, menu, nav, section, summary { diff --git a/Client/Speedometer/cef/speedometer.html b/Client/Speedometer/cef/speedometer.html index 9093524f..29ad6d44 100644 --- a/Client/Speedometer/cef/speedometer.html +++ b/Client/Speedometer/cef/speedometer.html @@ -48,24 +48,21 @@ if( rotation > 25 && rotation < 50 ){ document.getElementById("repairState").innerHTML = ""; } - } + } + function showSpeedo() - { - document.body.className = ""; + { + document.body.className = "fade"; } function hideSpeedo() - { - document.body.className = "fade"; + { + document.body.className = ""; }