counter add anotations

This commit is contained in:
speatzle 2024-05-10 18:00:07 +02:00
parent d612ce68c4
commit 13433c2972
2 changed files with 24 additions and 2 deletions

View file

@ -1,7 +1,18 @@
{{template "head"}}
<div id="wierd-flex" class="counter">
{{range $c := .Counter}}
{{ $l := len .Counter }}
{{range $i, $c := .Counter}}
<img class="counter-image" alt="{{$c}}" src="/static/counter/{{$c}}.gif">
{{ $n := sub $l $i }}
{{ if $n eq 4 }}
KB
{{ else if $n eq 8 }}
MB
{{ else if $n eq 12 }}
GB
{{ else if $n eq 16 }}
TB
{{end}}
{{end}}
</div>
<h2>Workers</h2>