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
Raw Normal View History

2017-05-26 13:09:48 +00:00
<html>
<head>
<title>GoBug</title>
2017-05-26 14:28:38 +00:00
<meta http-equiv="refresh" content="{{ .tempoAggiorna }}">
2017-05-26 13:09:48 +00:00
<meta charset="UTF-8">
<style type="text/css">
2017-05-26 13:41:00 +00:00
h1,h2,h3,h4,p {
2017-05-26 13:09:48 +00:00
color: white;
text-align: center;
2017-05-26 13:21:32 +00:00
font-size:2.4em;
2017-05-26 13:09:48 +00:00
}
body{
background: #009999;
}
table{
border: 1px solid white;
empty-cells: show;
2017-05-26 13:21:32 +00:00
background: white;
2017-05-26 13:09:48 +00:00
padding: 0px;
width:100%;
2017-05-26 13:21:32 +00:00
height: 89%;
2017-05-26 13:09:48 +00:00
}
td,tr{
background: white;
padding: 0px
}
2017-05-26 13:38:17 +00:00
td.cibo{
background: #FFFF33;
padding: 0px
}
td.razza1{
background: #00ff00;
padding: 0px
}td.razza2{
background: #FF0000;
padding: 0px
}
2017-05-26 13:21:32 +00:00
2017-05-26 13:09:48 +00:00
</style>
</head>
<body>
2017-05-26 14:28:38 +00:00
<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 }}
2017-05-26 13:38:17 +00:00
</table>
2017-05-26 13:09:48 +00:00
</body>
</html>