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);
|
||||
}
|
||||
|
||||
.currentweather .humidityIcon {
|
||||
padding-right: 8px;
|
||||
}
|
||||
|
||||
.currentweather .humidity-padding {
|
||||
padding-bottom: 6px;
|
||||
}
|
||||
|
@ -149,10 +149,15 @@ Module.register("currentweather",{
|
||||
var middle = document.createElement("div");
|
||||
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");
|
||||
humidity.innerHTML = "Humidity: " + this.humidity + "%"; // TODO: Localization
|
||||
humidity.innerHTML = this.humidity + "%";
|
||||
var br = document.createElement("br");
|
||||
|
||||
middle.appendChild(humidityIcon);
|
||||
middle.appendChild(humidity);
|
||||
middle.appendChild(br);
|
||||
wrapper.appendChild(middle);
|
||||
|
Loading…
x
Reference in New Issue
Block a user