From a38b8ca3c6146c2db03167d6ff94e445d756a202 Mon Sep 17 00:00:00 2001 From: Arpit Chakladar <54011232+arpitchakladar@users.noreply.github.com> Date: Mon, 3 Jun 2024 13:09:04 +0530 Subject: Added captha removal and autocomplete to GRN search. --- src/scripts/functionality/application-receipt.ts | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 src/scripts/functionality/application-receipt.ts (limited to 'src/scripts/functionality/application-receipt.ts') diff --git a/src/scripts/functionality/application-receipt.ts b/src/scripts/functionality/application-receipt.ts deleted file mode 100644 index a86405f..0000000 --- a/src/scripts/functionality/application-receipt.ts +++ /dev/null @@ -1,23 +0,0 @@ -$("#form_reprint_request") - .removeAttr("id") - .removeAttr("name") - .removeAttr("onsubmit") - .removeAttr("target") - .removeAttr("autocomplete") - .removeAttr("rel"); - -const captchaElement = $("#werter > div > div:nth-child(4)"); - -if (captchaElement.length > 0) { - const captchaValueElement = $("#captchaText"); - const captchaFieldElement = $("[name=txtDrawText]"); - - const captcha = () => { - captchaFieldElement.val("FFFFFF"); - captchaValueElement.val("FFFFFF"); - captchaElement.hide(); - }; - - captcha(); - setInterval(captcha, 1000); -} -- cgit v1.2.3