summaryrefslogtreecommitdiffstats
path: root/src/templates/time.template.html
blob: d107ae44d25344f7f0ac7a812bfe8b83e3aa3197 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<div class="infoItem day">
    {{ date.day }}
</div>
<div class="infoItem hour">
    {{ date.hour }}
</div>
<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>
    {{ /weather }}
</div>