aboutsummaryrefslogtreecommitdiffstats
path: root/src/scripts/functionality/application-receipt.ts
blob: a86405fa94518cbfe96051d70beaab6fd507205a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
$("#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);
}