commit 7aed64c3385e4a17eb8d71050d8bc2c462a065c2
parent e87f10e85cb5c1b880911d9099875431ec0697fa
Author: n0tr1v <n0tr1v@protonmail.com>
Date: Wed, 14 Dec 2022 21:55:57 -0500
cleanup
Diffstat:
6 files changed, 16 insertions(+), 18 deletions(-)
diff --git a/pkg/web/handlers/handlers.go b/pkg/web/handlers/handlers.go
@@ -186,9 +186,9 @@ func protectHomeHandler(c echo.Context) error {
buf.Write([]byte(`";
animation: `))
buf.Write([]byte(utils.FormatInt64(waitTime)))
- buf.Write([]byte(`s 1s forwards timer_countdown;
+ buf.Write([]byte(`s 1s forwards timer_countdown_frames;
}
- @keyframes timer_countdown {`))
+ @keyframes timer_countdown_frames {`))
for _, frame := range frames {
buf.Write([]byte(frame))
}
diff --git a/pkg/web/public/views/pages/captcha.gohtml b/pkg/web/public/views/pages/captcha.gohtml
@@ -2,9 +2,9 @@
<style>
#tutorial_secs:before {
content: "0s";
- animation: {{ .Data.CaptchaSec }}s 1s forwards timer_countdown;
+ animation: {{ .Data.CaptchaSec }}s 1s forwards timer_countdown_frames;
}
- @keyframes timer_countdown {
+ @keyframes timer_countdown_frames {
{{ range .Data.Frames -}}{{ . | css }}{{ end -}}
}
</style>
diff --git a/pkg/web/public/views/pages/chat.gohtml b/pkg/web/public/views/pages/chat.gohtml
@@ -50,17 +50,17 @@
#tutorial_btn_next {
visibility: hidden;
- animation: 15s 1s forwards timer_countdown2;
+ animation: 15s 1s forwards timer_countdown_frames2;
}
- @keyframes timer_countdown2 {
+ @keyframes timer_countdown_frames2 {
99% { visibility: hidden; }
100% { visibility: visible; }
}
#tutorial_secs:before {
content: "15";
- animation: 15s 1s forwards timer_countdown;
+ animation: 15s 1s forwards timer_countdown_frames;
}
- @keyframes timer_countdown {
+ @keyframes timer_countdown_frames {
0% { content: "15"; }
6.6666666667% { content: "14"; }
13.3333333333% { content: "13"; }
diff --git a/pkg/web/public/views/pages/forgot-password.gohtml b/pkg/web/public/views/pages/forgot-password.gohtml
@@ -52,10 +52,10 @@
}
#tutorial_secs:before {
content: "{{ .Data.CaptchaSec }}";
- animation: {{ .Data.CaptchaSec }}s 1s forwards timer_countdown;
+ animation: {{ .Data.CaptchaSec }}s 1s forwards timer_countdown_frames;
}
- @keyframes timer_countdown {
- {{ range .Data.Frames -}}{{ . | css }}{{ end -}}
+ @keyframes timer_countdown_frames {
+ {{ range .Data.Frames -}}{{ . | css }}{{ end -}}
}
.captcha-img { transition: transform .2s; }
.captcha-img:hover { transform: scale(2.5); }
diff --git a/pkg/web/public/views/pages/signup-wait.gohtml b/pkg/web/public/views/pages/signup-wait.gohtml
@@ -54,12 +54,10 @@
}
#tutorial_secs:before {
content: "{{ .Data.WaitTime }}";
- animation: {{ .Data.WaitTime }}s 1s forwards timer_countdown;
+ animation: {{ .Data.WaitTime }}s 1s forwards timer_countdown_frames;
}
- @keyframes timer_countdown {
- {{ range .Data.Frames -}}
- {{ . | css }}
- {{ end -}}
+ @keyframes timer_countdown_frames {
+ {{ range .Data.Frames -}}{{ . | css }}{{ end -}}
}
</style>
</head>
diff --git a/pkg/web/public/views/pages/signup.gohtml b/pkg/web/public/views/pages/signup.gohtml
@@ -52,9 +52,9 @@
}
#tutorial_secs:before {
content: "{{ .Data.CaptchaSec }}";
- animation: {{ .Data.CaptchaSec }}s 1s forwards timer_countdown;
+ animation: {{ .Data.CaptchaSec }}s 1s forwards timer_countdown_frames;
}
- @keyframes timer_countdown {
+ @keyframes timer_countdown_frames {
{{ range .Data.Frames -}}{{ . | css }}{{ end -}}
}
.captcha-img { transition: transform .2s; }