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