You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
693 B
HTML

3 years ago
<style>
#no-js {
border-collapse: collapse;
width: 100%;
}
#no-js td, #no-js th {
border: 1px solid #ddd;
padding: 8px;
}
#no-js tr:nth-child(even){background-color: #616161;}
#no-js th {
padding-top: 12px;
padding-bottom: 12px;
text-align: left;
background-color: #9A61AB;
color: #ebdbb2;
3 years ago
}
</style>
<table id="no-js">
3 years ago
<thead>
<tr>
<th>URL</th>
<th>Size in KB</th>
</tr>
</thead>
<tbody>
{{ $url := "static/assets/no-js/data/out.csv" }}
{{ $sep := "," }}
{{ range $i, $r := getCSV $sep $url }}
<tr>
<td>{{ index $r 0 }}</td>
<td>{{ index $r 1 }}</td>
</tr>
{{ end }}
</tbody>
</table>