From 18292d096aeace1e4e546bf5a03d01e8272043f2 Mon Sep 17 00:00:00 2001 From: b1ek Date: Thu, 20 Apr 2023 17:10:17 +1000 Subject: [PATCH] make captchas more readable --- views/captcha.pug | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/views/captcha.pug b/views/captcha.pug index 4ff860d..97e67a5 100644 --- a/views/captcha.pug +++ b/views/captcha.pug @@ -41,6 +41,6 @@ mixin captcha(text) var left_margin = 0; - p(class='c_s' style=`transform:translate(${((index - current_index) * (rint(80,82) / 10))}px, ${rint(-3,3)}px);${blowfish()};font-weight:${rint(0,2) == 1 ? 'bold' : 'normal'};color:#220000;display:inline-block`)= captcha[index] + p(class='c_s' style=`transform:translate(${((index - current_index) * 9)}px, ${rint(-2, 2)}px);${blowfish()};font-weight:${rint(0,2) == 1 ? 'bold' : 'normal'};color:#220000;display:inline-block`)= captcha[index] each i in pyRange(0, rint(4,10), 1) - p(class='c_s' style=`transform:translate(${((index - current_index) * (rint(80,82) / 10))}px, ${rint(-3,3)}px);${blowfish()};font-weight:bold;color:#220000;display:none`)= a + p(class='c_s' style=`transform:translate(${((index - current_index) * 9)}px, ${rint(-2, 2)}px);${blowfish()};font-weight:bold;color:#220000;display:none`)= a