aboutsummaryrefslogtreecommitdiffstats
path: root/src/scripts/pages/know-your-property/captcha.ts
diff options
context:
space:
mode:
authorArpit Chakladar <arpitchakladar+git@gmail.com>2026-07-13 20:49:57 +0530
committerArpit Chakladar <arpitchakladar+git@gmail.com>2026-07-13 20:49:57 +0530
commit6f6c263a072c9df4e826d8ebb2035c82a87be7e0 (patch)
treec8b944fe53b660d9d58b5559b10f4c73141e7559 /src/scripts/pages/know-your-property/captcha.ts
parentbc4eb3606afbbc4b54fbb3b4ef81badd06cde525 (diff)
downloadbanglar-bhumi-utils-6f6c263a072c9df4e826d8ebb2035c82a87be7e0.tar.gz
banglar-bhumi-utils-6f6c263a072c9df4e826d8ebb2035c82a87be7e0.zip
refactor: organised the scripts into a more well defined structure
now all scripts that are common to all pages lie in src/scripts/common each page gets its own folder in src/pages and different parts of the page's configuration are separated in separated folders which are all finally imported in src/pages/*/index.ts
Diffstat (limited to 'src/scripts/pages/know-your-property/captcha.ts')
-rw-r--r--src/scripts/pages/know-your-property/captcha.ts9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/scripts/pages/know-your-property/captcha.ts b/src/scripts/pages/know-your-property/captcha.ts
new file mode 100644
index 0000000..3abdf08
--- /dev/null
+++ b/src/scripts/pages/know-your-property/captcha.ts
@@ -0,0 +1,9 @@
+/**
+ * Hides the CAPTCHA section on the Know-Your-Property page and
+ * stubs the captcha validation so the user can proceed without
+ * solving a CAPTCHA.
+ */
+document.addEventListener("DOMContentLoaded", () => {
+ $("#khatianPlotDiv > div:nth-child(6) > div").hide();
+ (window as any).validateCaptcha = () => true;
+});