Added colors to time of day view.

This commit is contained in:
Marvin Blum
2020-09-28 22:02:28 +02:00
committed by Marvin Blum
parent 8accd83042
commit 2057121e33
4 changed files with 24 additions and 6 deletions

View File

@@ -242,7 +242,10 @@
<tr>
<td>{{$i}}</td>
{{range $j, $day := $global.TimeOfDay}}
<td>{{(index (index $global.TimeOfDay $j).Stats $i).Visitors}}</td>
{{$visitors := float64 (index (index $global.TimeOfDay $j).Stats $i).Visitors}}
<td style="background: rgba(81, 81, 81, {{divide $visitors $global.TimeOfDayMax}});color: #fff;text-align: center;">
{{$visitors}}
</td>
{{end}}
</tr>
{{end}}