mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-30 13:09:34 +00:00
Add in icon for the current humidity
This commit is contained in:
parent
c6f424201b
commit
a592ca25ff
@ -7,6 +7,10 @@
|
|||||||
transform: translate(0, -3px);
|
transform: translate(0, -3px);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.currentweather .humidityIcon {
|
||||||
|
padding-right: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
.currentweather .humidity-padding {
|
.currentweather .humidity-padding {
|
||||||
padding-bottom: 6px;
|
padding-bottom: 6px;
|
||||||
}
|
}
|
||||||
|
@ -149,10 +149,15 @@ Module.register("currentweather",{
|
|||||||
var middle = document.createElement("div");
|
var middle = document.createElement("div");
|
||||||
middle.className = "normal small humidity-padding";
|
middle.className = "normal small humidity-padding";
|
||||||
|
|
||||||
|
var humidityIcon = document.createElement("span");
|
||||||
|
humidityIcon.className = "wi wi-humidity humidityIcon";
|
||||||
|
small.appendChild(sunriseSunsetIcon);
|
||||||
|
|
||||||
var humidity = document.createElement("span");
|
var humidity = document.createElement("span");
|
||||||
humidity.innerHTML = "Humidity: " + this.humidity + "%"; // TODO: Localization
|
humidity.innerHTML = this.humidity + "%";
|
||||||
var br = document.createElement("br");
|
var br = document.createElement("br");
|
||||||
|
|
||||||
|
middle.appendChild(humidityIcon);
|
||||||
middle.appendChild(humidity);
|
middle.appendChild(humidity);
|
||||||
middle.appendChild(br);
|
middle.appendChild(br);
|
||||||
wrapper.appendChild(middle);
|
wrapper.appendChild(middle);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user