Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix(client): prevent UI showing up onstartup
  • Loading branch information
renzuzu committed Aug 30, 2021
1 parent 31baf8f commit ebd8691
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion html/index.html
Expand Up @@ -13,7 +13,7 @@
<link rel="stylesheet" type="text/css" href="https://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet">
</head>
<body>
<div id="garage"></div>
<div id="garage" style="display: none;"></div>
<div class="wrap" style="display: none;" id="perf">
<div class="section-title wow fadeInUp">
<h1>
Expand Down
2 changes: 2 additions & 0 deletions html/script.js
Expand Up @@ -119,6 +119,7 @@ window.addEventListener('message', function(event) {
VehicleArr = [];
CurrentVehicle = [];
$("#garage").fadeIn();
document.getElementById("garage").style.display = 'block';
for(var [key,value] of Object.entries(data.data)){
for(var [k,v] of Object.entries(value)){
VehicleArr.push(v);
Expand All @@ -129,6 +130,7 @@ window.addEventListener('message', function(event) {
}

if (event.data.type == "hide") {
document.getElementById("garage").style.display = 'none';
$("#garage").fadeOut();
}

Expand Down

0 comments on commit ebd8691

Please sign in to comment.