From bdbb526ff214ebbc5a687642804733114ea22a90 Mon Sep 17 00:00:00 2001 From: Jan Philipp Timme Date: Wed, 15 Nov 2017 20:41:46 +0100 Subject: [PATCH] Add very basic loadmask --- index.html | 6 +++++- js/main.js | 3 +++ style/main.css | 20 ++++++++++++++++---- 3 files changed, 24 insertions(+), 5 deletions(-) diff --git a/index.html b/index.html index dbd42fe..219efb3 100644 --- a/index.html +++ b/index.html @@ -3,7 +3,7 @@ TODO - + @@ -14,5 +14,9 @@ Charset ist UTF-8.
TODO

+
+ Arbeite ... bitte warten. +
+ diff --git a/js/main.js b/js/main.js index 2380cae..fedcb17 100644 --- a/js/main.js +++ b/js/main.js @@ -158,6 +158,9 @@ d3.queue() // All data loaded by the deferred functions, now we're ready for business // (call more functions :D) console.log("All done. Ready."); + // Throw errors so we can see them if(error) throw error; + // Hide the loadmask + d3.select("#loadmask").style("display", "none"); }); diff --git a/style/main.css b/style/main.css index b23e995..b157a24 100644 --- a/style/main.css +++ b/style/main.css @@ -1,4 +1,16 @@ -html, body { - margin: 0; - padding: 0; -} \ No newline at end of file +html, body, * { + margin: 0px; + padding: 0px; + border: 0px; +} + +#loadmask { + z-index: 100; + position: absolute; + top: 50px; + left: 50px; + padding: 15px; + border: 2px solid #AAAAAA; + background-color: #999999; + color: #000000; +}