mirror of https://gitgud.io/fatchan/jschan.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
1.2 KiB
25 lines
1.2 KiB
case captchaType
|
|
when 'google'
|
|
div(class='g-recaptcha' data-sitekey=`${googleRecaptchaSiteKey}` data-theme='dark' data-size='compact' data-callback='recaptchaCallback')
|
|
noscript Please enable JavaScript to solve the captcha.
|
|
when 'hcaptcha'
|
|
div(class='h-captcha' data-sitekey=`${hcaptchaSiteKey}` data-theme='dark' data-size='compact' data-callback='recaptchaCallback')
|
|
noscript Please enable JavaScript to solve the captcha.
|
|
when 'text'
|
|
noscript.no-m-p
|
|
iframe.captcha(src='/captcha.html' 'width=210' height='80' scrolling='no' loading='lazy')
|
|
.jsonly.captcha(style='display:none;')
|
|
input.captchafield(type='text' name='captcha' autocomplete='off' placeholder='Captcha text' pattern='.{6}' required title='6 characters')
|
|
when 'grid'
|
|
unless minimal
|
|
a.text-center(href='/faq.html#captcha') Instructions
|
|
.catalog
|
|
noscript.no-m-p
|
|
iframe.captcha(src='/captcha.html' width='150' height='150' scrolling='no' loading='lazy')
|
|
.jsonly.captcha(style='display:none')
|
|
.captchafield.noselect
|
|
- for(let i = 0; i < captchaGridSize**2; i++) {
|
|
label.captchachecklabel
|
|
input(type='checkbox' name='captcha' value=i)
|
|
span.captchacheckbox
|
|
- }
|
|
|