Add in icon for the current humidity

This commit is contained in:
Andrew McOlash 2016-08-28 01:52:08 -05:00
parent c6f424201b
commit a592ca25ff
2 changed files with 10 additions and 1 deletions

View File

@ -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;
} }

View File

@ -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);