-======= -
->>>>>>> Stashed changes
@@ -46,22 +61,32 @@
current places
+<<<<<<< HEAD <<<<<<< Updated upstream
+ +
+
+ Loading... +
+
+ +
+ + -- icon Placeholder @@ -97,6 +122,7 @@ Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.

+<<<<<<< HEAD
=======
@@ -111,18 +137,7 @@ Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermenerwrwrwetum massa justo sit amet risus.

-
- -
- -

- - @place - - Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris - condimentum nibh, ut fermentum massa justo sit amet risus. -

->>>>>>> Stashed changes +
@@ -137,12 +152,9 @@ -<<<<<<< Updated upstream -======= ->>>>>>> Stashed changes \ No newline at end of file diff --git a/js/index.js b/js/index.js index ee493ef..4e97a11 100644 --- a/js/index.js +++ b/js/index.js @@ -10,6 +10,12 @@ class BlueWeatherIndex { } loadLocations () { + // page: -1 for dashboard or sensor id + var mainContent = document.getElementById('locationsList') + var loader = document.getElementById('loader') + + mainContent.style = "opacity: 0;" + loader.style = "padding-left: 50%; padding-top:15px; opacity: 1; width:0;" this.blueweather.getLocations(true, function(locations) { var locationsList = document.getElementById("locationsList") locationsList.innerHTML = "" @@ -41,6 +47,10 @@ class BlueWeatherIndex { locLocationLink.innerHTML = "View on map" } + + loader.style = "padding-left: 50%; padding-top:0px; opacity: 0; width:0; height:0;" + mainContent.classList.add("opacity-animated"); + mainContent.style = "opacity: 1;" }) } }