This repository has been archived on 2021-01-15. You can view files and clone it, but cannot push or open issues or pull requests.
goBug/template/Interfaccia.html

64 lines
1.0 KiB
HTML

<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{
background: white;
padding: 0px
}
td.cibo{
background: #FFFF33;
padding: 0px
}
td.razza1{
background: #00ff00;
padding: 0px
}td.razza2{
background: #FF0000;
padding: 0px
}
</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"
{{ else }}
class="razza2"
{{ end }}
{{ end }}
>{{ $cella }}</td>
{{ end }}
</tr>
{{ end }}
</table>
</body>
</html>