diff options
Diffstat (limited to 'src/templates')
-rw-r--r-- | src/templates/time.template.html | 68 |
1 files changed, 38 insertions, 30 deletions
diff --git a/src/templates/time.template.html b/src/templates/time.template.html index 5be8b5d..d107ae4 100644 --- a/src/templates/time.template.html +++ b/src/templates/time.template.html @@ -4,35 +4,43 @@ <div class="infoItem hour"> {{ date.hour }} </div> -<div class="infoItem wheater"> - {{ #showTemperature }} - <div class="temperature weatherItem"> - <img src="http://openweathermap.org/img/wn/{{ weather.weather.0.icon }}.png"> - {{ weather.main.temp }}ºF +<a class="infoItem wheater" href="#" onclick="time.refresh()"> + {{ #weather }} + {{ #showTemperature }} + <div class="temperature weatherItem"> + <img src="http://openweathermap.org/img/wn/{{ weather.weather.0.icon }}.png"> + {{ weather.main.temp }}ºF + </div> + {{ /showTemperature }} + {{ #showWind }} + <div class="wind weatherItem"> + <i class="fas fa-wind"></i> + {{ weather.wind.speed }}KMH + </div> + {{ /showWind }} + {{ #showPosition }} + <div class="position weatherItem"> + <i class="fas fa-map-marker-alt"></i> + {{ weather.name }} + </div> + {{ /showPosition }} + {{ #showHumidity }} + <div class="humidity weatherItem"> + <i class="fas fa-tint"></i> + {{ weather.main.humidity }}% + </div> + {{ /showHumidity }} + {{ #showDescription }} + <div class="description weatherItem"> + <i class="fas fa-info-circle"></i> + {{ weather.weather.0.description }} + </div> + {{ /showDescription}} + {{ /weather }} + {{ ^weather }} + <div class="weatherItem"> + <i class="fas fa-exclamation-circle"></i> + Weather no available </div> - {{ /showTemperature }} - {{ #showWind }} - <div class="wind weatherItem"> - <i class="fas fa-wind"></i> - {{ weather.wind.speed }}KMH - </div> - {{ /showWind }} - {{ #showPosition }} - <div class="position weatherItem"> - <i class="fas fa-map-marker-alt"></i> - {{ weather.name }} - </div> - {{ /showPosition }} - {{ #showHumidity }} - <div class="humidity weatherItem"> - <i class="fas fa-tint"></i> - {{ weather.main.humidity }}% - </div> - {{ /showHumidity }} - {{ #showDescription }} - <div class="description weatherItem"> - <i class="fas fa-info-circle"></i> - {{ weather.weather.0.description }} - </div> - {{ /showDescription}} + {{ /weather }} </div>
\ No newline at end of file |