diff --git a/Lora-Map/Lora-Map.csproj b/Lora-Map/Lora-Map.csproj
index 956e965..af91716 100644
--- a/Lora-Map/Lora-Map.csproj
+++ b/Lora-Map/Lora-Map.csproj
@@ -102,6 +102,9 @@
PreserveNewest
+
+ PreserveNewest
+
PreserveNewest
diff --git a/Lora-Map/Model/WeatherWarnings.cs b/Lora-Map/Model/WeatherWarnings.cs
index 4b855bf..7050318 100644
--- a/Lora-Map/Model/WeatherWarnings.cs
+++ b/Lora-Map/Model/WeatherWarnings.cs
@@ -50,7 +50,7 @@ namespace Fraunhofer.Fit.IoT.LoraMap.Model {
this.From = warning["properties"]["SENT"].ToString();
this.To = warning["properties"]["EXPIRES"].ToString();
this.Location = warning["properties"]["NAME"].ToString();
- this.Type = warning["properties"]["EVENT"].ToString();
+ this.Type = warning["properties"]["EVENT"].ToString().ToLower();
this.Level = warning["properties"]["SEVERITY"].ToString().ToLower();
this.Headline = warning["properties"]["HEADLINE"].ToString();
this.Body = warning["properties"]["DESCRIPTION"].ToString();
diff --git a/Lora-Map/resources/css/global.css b/Lora-Map/resources/css/global.css
index 24f1a65..02e9a0f 100644
--- a/Lora-Map/resources/css/global.css
+++ b/Lora-Map/resources/css/global.css
@@ -59,6 +59,9 @@ object {
#menucollumn .pos {
background-image: url("icons/placeholder.png");
}
+#menucollumn .filter {
+ background-image: url("icons/filter.png");
+}
#menucollumn .admin {
background-image: url("icons/admin-with-cogwheels.png");
}
@@ -220,6 +223,7 @@ margin: 4px;
}
#pannels #pannels_weather .alertitem {
padding: 5px;
+ margin-bottom: 10px;
}
#pannels #pannels_weather .alertitem.minor {
background-color: #ffeb3b;
@@ -233,6 +237,9 @@ margin: 4px;
#pannels #pannels_weather .alertitem.extreme {
background-color: #880e4f;
}
+#pannels #pannels_weather .alertitem.hitze {
+ background-color: #c9f;
+}
#pannels #pannels_weather .alertitem .head {
font-weight: bold;
display: block;
diff --git a/Lora-Map/resources/css/icons/filter.png b/Lora-Map/resources/css/icons/filter.png
new file mode 100644
index 0000000..1884276
Binary files /dev/null and b/Lora-Map/resources/css/icons/filter.png differ
diff --git a/Lora-Map/resources/index.html b/Lora-Map/resources/index.html
index d04c16c..a8ca4c2 100644
--- a/Lora-Map/resources/index.html
+++ b/Lora-Map/resources/index.html
@@ -54,6 +54,7 @@
Freepik licensed CC 3.0 BY
Silk Iconset licensed CC 2.5 BY
Those Icons licensed by CC 3.0 BY
+ Freepik licensed by CC 3.0 BY
diff --git a/Lora-Map/resources/js/menu.js b/Lora-Map/resources/js/menu.js
index 4140b23..325a1c7 100644
--- a/Lora-Map/resources/js/menu.js
+++ b/Lora-Map/resources/js/menu.js
@@ -169,11 +169,17 @@
var html = "";
for (var i = 0; i < json.length; i++) {
var walert = json[i];
- html += "" +
+ html += "
" +
"" + walert.Headline + "" +
"" + walert.Location + "" +
"" + walert.Body + (walert.Instructions != "" ? "
" + walert.Instructions : "") + "" +
- "Von: vor " + FunctionsObject.TimeCalculation(walert.From, "difftext") + " Bis: in " + FunctionsObject.TimeCalculation(walert.To, "difftextn") + "" +
+ "Von: ";
+ if (FunctionsObject.TimeCalculation(walert.From, "diffraw") < 0) {
+ html += "in " + FunctionsObject.TimeCalculation(walert.From, "difftextn");
+ } else {
+ html += "vor " + FunctionsObject.TimeCalculation(walert.From, "difftext");
+ }
+ html += " Bis: in " + FunctionsObject.TimeCalculation(walert.To, "difftextn") + "" +
"
";
}
document.getElementById("pannels_weather").innerHTML = html;