make captchas more readable

This commit is contained in:
b1ek 2023-04-20 17:10:17 +10:00
parent b06287428c
commit 18292d096a
Signed by: blek
GPG Key ID: 14546221E3595D0C
1 changed files with 2 additions and 2 deletions

View File

@ -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