diff --git a/seadssite/static/css/dashboard.css b/seadssite/static/css/dashboard.css index df4d1de..a5374b5 100755 --- a/seadssite/static/css/dashboard.css +++ b/seadssite/static/css/dashboard.css @@ -9,6 +9,25 @@ .page { display: none; } +#loader { + border: 16px solid #f3f3f3; /* Light grey */ + border-top: 16px solid #3498db; /* Blue */ + border-radius: 50%; + position: absolute; + margin: auto; + top: -400; left: 0; bottom: 0; right: 0; + /* display: block;*/ + width: 120px; + height: 120px; + animation: spin 1s linear infinite; + z-index: 10; +} + +@keyframes spin { + 0% { transform: rotate(0deg); } + 100% { transform: rotate(360deg); } +} + #graphs_page { display: inline; diff --git a/seadssite/static/js/device.js b/seadssite/static/js/device.js index 85c3640..b47b382 100644 --- a/seadssite/static/js/device.js +++ b/seadssite/static/js/device.js @@ -183,6 +183,7 @@ var app = function () { }) } }); + document.getElementById("loader").style.display = "none" return result; } diff --git a/seadssite/templates/device.html b/seadssite/templates/device.html index 21edba5..59cf839 100644 --- a/seadssite/templates/device.html +++ b/seadssite/templates/device.html @@ -31,6 +31,7 @@