<html>
<head>
<title>GoBug</title>
<meta http-equiv="refresh" content="{{ .tempoAggiorna }}">
<meta charset="UTF-8">
<style type="text/css">
h1,h2,h3,h4,p {
color: white;
text-align: center;
font-size:2.4em;
}
body{
background: #009999;
table{
border: 1px solid white;
empty-cells: show;
background: white;
padding: 0px;
width:100%;
height: 89%;
td,tr{
padding: 0px
td.cibo{
background: #FFFF33;
td.razza1{
background: #00ff00;
}td.razza2{
background: #FF0000;
</style>
</head>
<body>
<h1>Go bug</h1>
<table>
{{range $riga := .matrice}}
<tr>
{{range $cella := $riga}}
<td {{ if not $cella }}
class="vuoto"
{{ else }}
{{ if $cella.IsFood }}
class="razza1"
class="razza2"
{{ end }}
>{{ $cella }}</td>
</tr>
</table>
</body>
</html>