summaryrefslogtreecommitdiffstats
path: root/src/js/app.js
diff options
context:
space:
mode:
authorHumberto Alfonso Díaz <humberto.alfonso@asvito.es>2019-12-10 14:24:43 +0100
committerLorenzo Tilve <ltilve@igalia.com>2020-02-04 19:03:18 +0100
commit9a47d56486ca9d6852613e98582bba8257b08d81 (patch)
tree6b9efd80f6a3f0c7ec1a57138a763d2a7d021067 /src/js/app.js
parent427a12e11932716a87741686e558a0ad8b49bb03 (diff)
BUGFIX Add landscape/portrait support
Diffstat (limited to 'src/js/app.js')
-rw-r--r--src/js/app.js6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/js/app.js b/src/js/app.js
index 7ce31f9..e9ba104 100644
--- a/src/js/app.js
+++ b/src/js/app.js
@@ -22,7 +22,7 @@ var page = {
},
isWarning: true,
fuel: {
- percent: 100,
+ percent: 75,
level: 14,
range: 650,
avg: 25.5
@@ -81,10 +81,6 @@ export function simulate() {
page.rpm.percent = Math.min(80, Math.floor(Math.random()*90));
}
- page.fuel.percent = Math.round(page.fuel.percent - 0.01);
- page.fuel.level = Math.round(page.fuel.level - 0.01);
- page.fuel.range = Math.round(page.fuel.range - 0.01);
-
show();
if( counter > 600 ) {