Weather and Category
This commit is contained in:
23
web/data/fullweather.html
Normal file
23
web/data/fullweather.html
Normal file
@@ -0,0 +1,23 @@
|
||||
{{define "fullweatherHTML"}}
|
||||
|
||||
<h2 class="w-title">{{.title}}</h2>
|
||||
<div class="weather-container">
|
||||
{{range .weatherInfo}}
|
||||
<div class="weather-w">
|
||||
<h3>{{.Name}}</h3>
|
||||
{{with index .Weather 0}}
|
||||
<div class="weather-info">Opis: {{.Description}}</div>
|
||||
{{end}}
|
||||
<div class="weather-info">Temperatura: {{.Main.Temp}}°C</div>
|
||||
<div class="weather-info">Osecaj: {{.Main.FellsLike}}°C</div>
|
||||
<div class="weather-info">Pritisak:{{.Main.Preassure}} hPa</div>
|
||||
<div class="weather-info">Vlaznost: {{.Main.Humidity}}%</div>
|
||||
<div class="weather-info">Min Temp: {{.Main.TempMin}}°C</div>
|
||||
<div class="weather-info">Max Temp: {{.Main.TempMax}}°C</div>
|
||||
<div class="weather-info">Vetar: {{.Wind.Speed}} m/s</div>
|
||||
<div class="weather-info">Oblaci: {{.Clouds.All}}%</div>
|
||||
</div>
|
||||
{{end}}
|
||||
</div>
|
||||
|
||||
{{end}}
|
||||
Reference in New Issue
Block a user