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 = ""; }