aboutsummaryrefslogtreecommitdiffstats
path: root/src/scripts/pages/application-receipt
diff options
context:
space:
mode:
Diffstat (limited to 'src/scripts/pages/application-receipt')
-rw-r--r--src/scripts/pages/application-receipt/captcha.ts13
-rw-r--r--src/scripts/pages/application-receipt/index.ts1
2 files changed, 14 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..94e6b0e
--- /dev/null
+++ b/src/scripts/pages/application-receipt/captcha.ts
@@ -0,0 +1,13 @@
+/**
+ * Hides the CAPTCHA section on the application-receipt page and
+ * stubs the form validation so the user can proceed without
+ * solving a CAPTCHA.
+ */
+type WindowApplicationReceipt = {
+ validateForm?: () => boolean
+} & Window;
+
+document.addEventListener("DOMContentLoaded", () => {
+ $("#werter > div > form > div:nth-child(4)").hide();
+ (window as WindowApplicationReceipt).validateForm = () => true;
+});
diff --git a/src/scripts/pages/application-receipt/index.ts b/src/scripts/pages/application-receipt/index.ts
new file mode 100644
index 0000000..5a8d0a6
--- /dev/null
+++ b/src/scripts/pages/application-receipt/index.ts
@@ -0,0 +1 @@
+import "@/scripts/pages/application-receipt/captcha";