aboutsummaryrefslogtreecommitdiffstats
path: root/src/templates/time.template.html
blob: c7dad965c4922a5c0b324a27a551a0a24c751a2f (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 dragable="false" 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>
            No weather
        </div>
    {{ /weather }}
</div>