|
|
@ -3,7 +3,7 @@ function pug_escape(e){var a=""+e,t=pug_match_html.exec(a);if(!t)return e;var r, |
|
|
|
var pug_match_html=/["&<>]/;function captchaformsection(locals) {var pug_html = "", pug_mixins = {}, pug_interp;; |
|
|
|
var pug_match_html=/["&<>]/;function captchaformsection(locals) {var pug_html = "", pug_mixins = {}, pug_interp;; |
|
|
|
var locals_for_with = (locals || {}); |
|
|
|
var locals_for_with = (locals || {}); |
|
|
|
|
|
|
|
|
|
|
|
(function (captchaGridSize, captchaType, googleRecaptchaSiteKey) { |
|
|
|
(function (captchaGridSize, captchaType, googleRecaptchaSiteKey, minimal) { |
|
|
|
pug_mixins["captchaexpand"] = pug_interp = function(){ |
|
|
|
pug_mixins["captchaexpand"] = pug_interp = function(){ |
|
|
|
var block = (this && this.block), attributes = (this && this.attributes) || {}; |
|
|
|
var block = (this && this.block), attributes = (this && this.attributes) || {}; |
|
|
|
pug_html = pug_html + "\u003Cdetails class=\"row label mr-0\"\u003E\u003Csummary class=\"pv-5\"\u003ECaptcha\u003Cspan class=\"required\"\u003E*\u003C\u002Fspan\u003E\u003C\u002Fsummary\u003E"; |
|
|
|
pug_html = pug_html + "\u003Cdetails class=\"row label mr-0\"\u003E\u003Csummary class=\"pv-5\"\u003ECaptcha\u003Cspan class=\"required\"\u003E*\u003C\u002Fspan\u003E\u003C\u002Fsummary\u003E"; |
|
|
@ -15,7 +15,10 @@ case 'text': |
|
|
|
pug_html = pug_html + "\u003Cnoscript class=\"no-m-p\"\u003E\u003Ciframe" + (" class=\"captcha\""+" src=\"\u002Fcaptcha.html\""+pug_attr("width=210", true, true, false)+" height=\"80\" scrolling=\"no\" loading=\"lazy\"") + "\u003E\u003C\u002Fiframe\u003E\u003C\u002Fnoscript\u003E\u003Cdiv class=\"jsonly captcha\" style=\"display:none;\"\u003E\u003C\u002Fdiv\u003E\u003Cinput" + (" class=\"captchafield\""+" type=\"text\" name=\"captcha\" autocomplete=\"off\" placeholder=\"Captcha text\" pattern=\".{6}\""+pug_attr("required", true, true, false)+" title=\"6 characters\"") + "\u002F\u003E"; |
|
|
|
pug_html = pug_html + "\u003Cnoscript class=\"no-m-p\"\u003E\u003Ciframe" + (" class=\"captcha\""+" src=\"\u002Fcaptcha.html\""+pug_attr("width=210", true, true, false)+" height=\"80\" scrolling=\"no\" loading=\"lazy\"") + "\u003E\u003C\u002Fiframe\u003E\u003C\u002Fnoscript\u003E\u003Cdiv class=\"jsonly captcha\" style=\"display:none;\"\u003E\u003C\u002Fdiv\u003E\u003Cinput" + (" class=\"captchafield\""+" type=\"text\" name=\"captcha\" autocomplete=\"off\" placeholder=\"Captcha text\" pattern=\".{6}\""+pug_attr("required", true, true, false)+" title=\"6 characters\"") + "\u002F\u003E"; |
|
|
|
break; |
|
|
|
break; |
|
|
|
case 'grid': |
|
|
|
case 'grid': |
|
|
|
pug_html = pug_html + "\u003Ca class=\"text-center\" href=\"\u002Ffaq.html#captcha\"\u003EInstructions\u003C\u002Fa\u003E\u003Cdiv class=\"catalog\"\u003E\u003Cnoscript class=\"no-m-p\"\u003E\u003Ciframe class=\"captcha\" src=\"\u002Fcaptcha.html\" width=\"150\" height=\"150\" scrolling=\"no\" loading=\"lazy\"\u003E\u003C\u002Fiframe\u003E\u003C\u002Fnoscript\u003E\u003Cdiv class=\"jsonly captcha\" style=\"display:none\"\u003E\u003C\u002Fdiv\u003E\u003Cdiv class=\"captchafield noselect\"\u003E"; |
|
|
|
if (!(minimal)) { |
|
|
|
|
|
|
|
pug_html = pug_html + "\u003Ca class=\"text-center\" href=\"\u002Ffaq.html#captcha\"\u003EInstructions\u003C\u002Fa\u003E"; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
pug_html = pug_html + "\u003Cdiv class=\"catalog\"\u003E\u003Cnoscript class=\"no-m-p\"\u003E\u003Ciframe class=\"captcha\" src=\"\u002Fcaptcha.html\" width=\"150\" height=\"150\" scrolling=\"no\" loading=\"lazy\"\u003E\u003C\u002Fiframe\u003E\u003C\u002Fnoscript\u003E\u003Cdiv class=\"jsonly captcha\" style=\"display:none\"\u003E\u003C\u002Fdiv\u003E\u003Cdiv class=\"captchafield noselect\"\u003E"; |
|
|
|
for(let i = 0; i < captchaGridSize**2; i++) { |
|
|
|
for(let i = 0; i < captchaGridSize**2; i++) { |
|
|
|
pug_html = pug_html + "\u003Clabel class=\"captchachecklabel\"\u003E\u003Cinput" + (" type=\"checkbox\" name=\"captcha\""+pug_attr("value", i, true, false)) + "\u002F\u003E\u003Cspan class=\"captchacheckbox\"\u003E\u003C\u002Fspan\u003E\u003C\u002Flabel\u003E"; |
|
|
|
pug_html = pug_html + "\u003Clabel class=\"captchachecklabel\"\u003E\u003Cinput" + (" type=\"checkbox\" name=\"captcha\""+pug_attr("value", i, true, false)) + "\u002F\u003E\u003Cspan class=\"captchacheckbox\"\u003E\u003C\u002Fspan\u003E\u003C\u002Flabel\u003E"; |
|
|
|
} |
|
|
|
} |
|
|
@ -31,5 +34,7 @@ pug_mixins["captchaexpand"](); |
|
|
|
locals_for_with.captchaType : |
|
|
|
locals_for_with.captchaType : |
|
|
|
typeof captchaType !== 'undefined' ? captchaType : undefined, "googleRecaptchaSiteKey" in locals_for_with ? |
|
|
|
typeof captchaType !== 'undefined' ? captchaType : undefined, "googleRecaptchaSiteKey" in locals_for_with ? |
|
|
|
locals_for_with.googleRecaptchaSiteKey : |
|
|
|
locals_for_with.googleRecaptchaSiteKey : |
|
|
|
typeof googleRecaptchaSiteKey !== 'undefined' ? googleRecaptchaSiteKey : undefined)); |
|
|
|
typeof googleRecaptchaSiteKey !== 'undefined' ? googleRecaptchaSiteKey : undefined, "minimal" in locals_for_with ? |
|
|
|
|
|
|
|
locals_for_with.minimal : |
|
|
|
|
|
|
|
typeof minimal !== 'undefined' ? minimal : undefined)); |
|
|
|
;;return pug_html;} |
|
|
|
;;return pug_html;} |