aemet/cmd/templates/index.html

57 lines
1.1 KiB
HTML
Raw Normal View History

2024-05-27 08:28:10 +02:00
<!DOCTYPE html>
<html lang="en">
<head>
<title>AEMET Client</title>
2024-05-27 08:28:10 +02:00
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="style.css" rel="stylesheet">
</head>
<body>
2024-05-30 08:26:08 +02:00
<div class="container">
<div id="main">
<table border=1>
<th colspan="100%">{{ .Base.Nombre }}</th>
2024-05-30 08:26:08 +02:00
<tr>
<td>Dia</td>
{{ range .Base.Prediccion.Dia}}
<td>{{ .Fecha }}</td>
{{ end }}
</tr>
<tr>
<td>Temp. Máxima</td>
{{ range .Base.Prediccion.Dia}}
<td>{{ .Temperatura.Maxima }}</td>
{{ end }}
</tr>
<tr>
<td>Temp. Mínima</td>
{{ range .Base.Prediccion.Dia}}
<td>{{ .Temperatura.Minima }}</td>
{{ end }}
</tr>
<tr>
<td>Índice UV</td>
{{ range .Base.Prediccion.Dia}}
<td>
{{ if eq .UV "" }}
No disponible!
{{ else }}
{{ .UV }}
{{ end }}
</td>
{{ end }}
</tr>
</table>
</div>
</div>
2024-05-27 08:28:10 +02:00
</body>
</html>