commit b7c5459ca8574a73a9f6fcee164ff5d0ee953c87 parent a63178836d6f2e039df1883405eb6270b1c862a5 Author: n0tr1v <n0tr1v@protonmail.com> Date: Tue, 10 Jan 2023 23:40:03 -0800 add some doc Diffstat:
| M | pkg/web/handlers/handlers.go | | | 3 | +++ |
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/pkg/web/handlers/handlers.go b/pkg/web/handlers/handlers.go @@ -955,6 +955,9 @@ const ( RecoveryGpgValidated ) +// n: how many frames to generate. +// contentFn: callback to alter the content of the frames +// reverse: if true, will generate the frames like so: 5 4 3 2 1 0 func generateCssFrames(n int64, contentFn func(int64) string, reverse bool) (frames []string) { step := 100.0 / float64(n) pct := 0.0