diff options
| author | Arpit Chakladar <54011232+arpitchakladar@users.noreply.github.com> | 2024-03-12 14:22:41 +0530 |
|---|---|---|
| committer | Arpit Chakladar <54011232+arpitchakladar@users.noreply.github.com> | 2024-03-12 14:22:41 +0530 |
| commit | 95becf369822cbb74f4cefb5658f3ff97e164d6e (patch) | |
| tree | e00c49ed93744d4e97d9c9460baf2dc5fec84e86 /src/scripts/login.ts | |
| parent | a90f2e98c72ae2e04ba8b65e9a316eb08b5d6bea (diff) | |
| download | banglar-bhumi-utils-95becf369822cbb74f4cefb5658f3ff97e164d6e.tar.gz banglar-bhumi-utils-95becf369822cbb74f4cefb5658f3ff97e164d6e.zip | |
Using jquery for injected codes to maintain consistency.
Diffstat (limited to 'src/scripts/login.ts')
| -rw-r--r-- | src/scripts/login.ts | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/scripts/login.ts b/src/scripts/login.ts index 98720de..7bc6118 100644 --- a/src/scripts/login.ts +++ b/src/scripts/login.ts @@ -10,9 +10,9 @@ interceptPost("viewLoginAreaAction", args => { captchaValueElement.val("FFFFFF"); (window as any).DrawLoginCaptcha = () => {}; (window as any).validateLoginCaptcha = () => true; - captchaValueElement.css("display", "none"); - captchaInputElement.css("display", "none"); - $(".captcharefresh").css("display", "none"); + captchaValueElement.hide(); + captchaInputElement.hide(); + $(".captcharefresh").hide(); } }); interceptPost("viewPasswordRecoveryArea", args => { @@ -24,9 +24,9 @@ interceptPost("viewPasswordRecoveryArea", args => { captchaInputElement.val("FFFFFF"); captchaValueElement.val("FFFFFF"); (window as any).Captcha = () => {}; - captchaValueElement.css("display", "none"); - captchaInputElement.css("display", "none"); - $("#captchaRef").css("display", "none"); + captchaValueElement.hide(); + captchaInputElement.hide(); + $("#captchaRef").hide(); } }); interceptPost("login.action", args => { @@ -39,7 +39,7 @@ interceptPost("login.action", args => { callback(data); $("#txtInput").val("FFFFFF"); - $("#beforeLoginDiv").css("display", "none"); + $("#beforeLoginDiv").hide(); $("#afterLoginDiv").css("display", "block"); $("#afterLoginLabel").css("display", "block"); const username = atob(loginData.username.split("RGxycyMxMjM=")[1]); @@ -61,9 +61,9 @@ interceptGet("viewRegistrationAreaAction", args => { const captchaValueElement = $("#regCaptcha"); captchaInputElement.val("FFFFFF"); captchaValueElement.val("FFFFFF"); - $("#registrationForm > div > div:nth-child(5) > div:nth-child(3)").css("display", "none"); - $("#registrationForm > div > div:nth-child(5) > div:nth-child(4)").css("display", "none"); - $("#registrationForm > div > div:nth-child(5) > div:nth-child(5)").css("display", "none"); + $("#registrationForm > div > div:nth-child(5) > div:nth-child(3)").hide(); + $("#registrationForm > div > div:nth-child(5) > div:nth-child(4)").hide(); + $("#registrationForm > div > div:nth-child(5) > div:nth-child(5)").hide(); (window as any).DrawRegistrationCaptcha = () => {}; (window as any).validateRegistrationCaptcha = () => true; } @@ -77,9 +77,9 @@ interceptGet("viewChangePasswordAction", args => { captchaValueElement.val("FFFFFF"); captchaInputElement.val("FFFFFF"); (window as any).DrawLoginCaptcha = () => {}; - captchaValueElement.css("display", "none"); - captchaInputElement.css("display", "none"); - $(".captcharefresh").css("display", "none"); + captchaValueElement.hide(); + captchaInputElement.hide(); + $(".captcharefresh").hide(); } }); |
