64 lines
1.1 KiB
HTML
64 lines
1.1 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<style>
|
|
body {
|
|
display: flex;
|
|
justify-content: center;
|
|
}
|
|
|
|
table {
|
|
border-collapse: collapse;
|
|
}
|
|
|
|
table, table tr th, table tr td {
|
|
border: 1px solid #000000;
|
|
}
|
|
|
|
p {
|
|
margin: 0
|
|
}
|
|
table th {
|
|
background-color: rgba(128, 128, 128, 0.5);
|
|
}
|
|
|
|
.title{
|
|
width: 100%;
|
|
text-align: center;
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body>
|
|
<div class="table-container">
|
|
<div class="title">{{.title}}</div>
|
|
<div id="table-body">
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
{{range $i, $v := .header}}
|
|
<th>{{ $v }}</th>
|
|
{{end}}
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
{{range $i, $arr := .data}}
|
|
<tr>
|
|
{{range $j, $v := $arr}}
|
|
<td>{{ $v }}</td>
|
|
{{end}}
|
|
</tr>
|
|
{{end}}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<script>
|
|
|
|
</script>
|
|
</body>
|
|
|
|
</html> |