From 808dfa250ae1f8855fb5ebda8a368f0b370086d6 Mon Sep 17 00:00:00 2001 From: Matthias Wirth Date: Mon, 18 May 2020 14:32:51 +0200 Subject: [PATCH] show loading bar for longer --- html/script.js | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/html/script.js b/html/script.js index 94a5aa8..b6d9bfc 100644 --- a/html/script.js +++ b/html/script.js @@ -772,9 +772,6 @@ function init_page() { $('#clock_div').text(new Date().toLocaleString()); - - $("#loader").removeClass("hidden"); - if (ExtendedData || window.location.hash == '#extended') { $("#extendedData").removeClass("hidden"); } @@ -1084,9 +1081,6 @@ function parse_history() { console.time("Loaded aircraft tracks from History"); } - if (!heatmap) - $("#loader").addClass("hidden"); - for (let i in deferHistory) deferHistory[i] = null; @@ -1240,7 +1234,8 @@ function parse_history() { geoMag = geoMagFactory(cof2Obj()); - $("#loader").addClass("hidden"); + if (!heatmap) + $("#loader").addClass("hidden"); } // Make a LineString with 'points'-number points @@ -4598,4 +4593,5 @@ function drawHeatmap() { //console.log(features.length); heatFeatures[i].addFeatures(features.splice(0, heatmap.max / 16)); } + $("#loader").addClass("hidden"); }