aboutsummaryrefslogtreecommitdiffstats
path: root/src/scripts/pages/application-receipt/captcha.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/scripts/pages/application-receipt/captcha.ts')
-rw-r--r--src/scripts/pages/application-receipt/captcha.ts9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/scripts/pages/application-receipt/captcha.ts b/src/scripts/pages/application-receipt/captcha.ts
new file mode 100644
index 0000000..c5bb657
--- /dev/null
+++ b/src/scripts/pages/application-receipt/captcha.ts
@@ -0,0 +1,9 @@
+/**
+ * Hides the CAPTCHA section on the application-receipt page and
+ * stubs the form validation so the user can proceed without
+ * solving a CAPTCHA.
+ */
+document.addEventListener("DOMContentLoaded", () => {
+ $("#werter > div > form > div:nth-child(4)").hide();
+ (window as any).validateForm = () => true;
+});