Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- _initCaptcha() {
- if (aib.makaba && !aib.isArchived) {
- loadCaptchaFn();
- } else {
- const capEl =
- $q('input[type="text"][name*="aptcha"], *[id*="captcha"], *[class*="captcha"]', this.form);
- if (!capEl) {
- this.cap = null;
- return;
- }
- this.cap = new Captcha(capEl, this.tNum);
- const updCapFn = () => {
- this.cap.addCaptcha();
- this.cap.updateOutdated();
- };
- this.txta.addEventListener('focus', updCapFn);
- if (this.files) {
- this.files.onchange = updCapFn;
- }
- this.form.addEventListener('click', () => this.cap.addCaptcha(), true);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement