Added a JS script. Shortened CAPTCHA expiry message.

This commit is contained in:
Alexander Andreev 2022-08-25 03:26:04 +04:00
parent 10ad2177c4
commit c186f232a8
Signed by: Arav
GPG Key ID: 0388CC8FAA51063F

View File

@ -8,6 +8,7 @@ mixin entryLine(line)
block head block head
link(href='/assets/css/guestbook.css' rel='stylesheet') link(href='/assets/css/guestbook.css' rel='stylesheet')
script(src='/assets/js/captcha_refresh.js' defer='')
block nav block nav
nav nav
@ -34,7 +35,7 @@ block content
input(type='hidden', name='captcha_id' value=captcha_id) input(type='hidden', name='captcha_id' value=captcha_id)
img(src='/captcha/'+captcha_id+'/image', alt="CAPTCHA" width='160' height='40') img(src='/captcha/'+captcha_id+'/image', alt="CAPTCHA" width='160' height='40')
input(type='text' maxlength='6' placeholder='CAPTCHA' name='captcha_answer' required) input(type='text' maxlength='6' placeholder='CAPTCHA' name='captcha_answer' required)
small Will be valid for next #[b 10] minutes. small Valid for #[b 10] minutes.
small *Only I can see if set. small *Only I can see if set.
input(type='submit' value='Send a post') input(type='submit' value='Send a post')
section#posts section#posts