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
2017-05-26 16:43:12 +02:00

86 lines
2.1 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 {
color: white;
text-align: center;
font-size:2.4em;
}
p {
color: white;
font-size:2em;
}
body {
background: #009999;
}
table {
border: 1px solid white;
empty-cells: show;
background: white;
padding: 0px;
width:100%;
height: 100%;
}
div {
width:20%;
height: 89%;
background-color: #006666;
}
td,tr {
background: white;
padding: 0px;
}
.cibo {
background: #FFFF33;
padding: 0px;
}
.razza1 {
background: #00ff00;
padding: 0px;
}
.razza2 {
background: #FF0000;
padding: 0px;
}
</style>
</head>
<body>
<h1>Go bug</h1>
<div style="float:left; display:block; width:70%; height:89%; ">
<table>
{{range $riga := .matrice}}
<tr>
{{range $cella := $riga}}
<td {{ if not $cella }}
class="vuoto"
{{ else }}
{{ if $cella.IsFood }}
class="cibo"
{{ else }}
class="razza1"
{{ end }}
{{ end }}>{{ $cella }}</td>
{{ end }}
</tr>
{{ end }}
</table>
</div>
<div style="float:left; display:block; width:1%; height:89%; "></div>
<div style="float:left; display:block; width:29%; height:89%; ">
<h1>legenda</h1>
<div style="float:left; display:block; width:30%; height:20%; background-color:#FFFF33;"></div>
<div style="float:right; display:block; width:65%; height:20%; "><p>Food</p></div>
<div style="float:right; display:block; width:100%; height:2%; "></div>
<div style="float:left; display:block; width:30%; height:20%; background-color:#00ff00;"></div>
<div style="float:right; display:block; width:65%; height:20%; "><p>Razza1</p></div>
<div style="float:right; display:block; width:100%; height:2%;"></div>
<div style="float:left; display:block; width:30%; height:20%; background-color:#F00;"></div>
<div style="float:right; display:block; width:65%; height:20%; "><p>Razza2</p></div>
</div>
</div>
</body>
</html>