aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/scripts.json9
-rw-r--r--src/scripts/functionality/home-page-banner.ts (renamed from src/scripts/optimize/home-page/styles.ts)0
-rw-r--r--src/scripts/optimize.ts (renamed from src/scripts/optimize/index.ts)0
-rw-r--r--src/scripts/optimize/home-page/modify-dom.ts9
-rw-r--r--src/scripts/stop-blocking.js1164
-rw-r--r--src/scripts/stop-blocking.ts21
6 files changed, 26 insertions, 1177 deletions
diff --git a/src/scripts.json b/src/scripts.json
index c6caca8..5fb63e6 100644
--- a/src/scripts.json
+++ b/src/scripts.json
@@ -1,17 +1,18 @@
{
"before": {
- "optimize/index.ts": "*",
- "optimize/home-page/modify-dom.ts": "Home"
+ "optimize.ts": "*"
+ },
+ "injected-before": {
+ "stop-blocking.ts": "*"
},
"injected": {
- "stop-blocking.js": "*",
"login.ts": "*",
"otps/grievance-application.ts": "GrievAppViewAction.action",
"functionality/view-khatian.ts": "KnowYourProperty.action"
},
"loaded": {
"captcha.ts": "*",
- "optimize/home-page/styles.ts": "Home",
+ "functionality/home-page-banner.ts": "Home",
"functionality/application-receipt.ts": "Apprecrep.action"
}
}
diff --git a/src/scripts/optimize/home-page/styles.ts b/src/scripts/functionality/home-page-banner.ts
index 249b361..249b361 100644
--- a/src/scripts/optimize/home-page/styles.ts
+++ b/src/scripts/functionality/home-page-banner.ts
diff --git a/src/scripts/optimize/index.ts b/src/scripts/optimize.ts
index 4acf66f..4acf66f 100644
--- a/src/scripts/optimize/index.ts
+++ b/src/scripts/optimize.ts
diff --git a/src/scripts/optimize/home-page/modify-dom.ts b/src/scripts/optimize/home-page/modify-dom.ts
deleted file mode 100644
index 762b4f8..0000000
--- a/src/scripts/optimize/home-page/modify-dom.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-import { modifyDOM, DOMModifier } from "@/utils/modify-dom";
-
-const bannerImageUrl = chrome.runtime.getURL("assets/banner.jpg");
-
-modifyDOM([
- new DOMModifier("#slider > img", {
- src: bannerImageUrl
- })
-]);
diff --git a/src/scripts/stop-blocking.js b/src/scripts/stop-blocking.js
deleted file mode 100644
index e1a3ce2..0000000
--- a/src/scripts/stop-blocking.js
+++ /dev/null
@@ -1,1164 +0,0 @@
-let contextPath = "/BanglarBhumi";
-let currentTheme = "";
-let carrerData = "";
-let previousTheme = "";
-let menuHeader = "";
-let user = "";
-let user_type = "";
-let beforeLoginModal = "";
-let afterLoginModal = "";
-let afterLoginDiv = "";
-let beforeLoginDiv = "";
-let afterLoginLabel = "";
-let btngriv = "";
-let modal1 = "";
-let btn = "";
-let span = "";
-
-document.oncontextmenu = new Function("return true");
-$(document).keydown(() => true);
-$(document).ready(() => {
- switch_style(currentTheme);
- if (currentTheme == "black") {
- $(".dark").show();
- $(".light").hide();
- } else {
- $(".dark").hide();
- $(".light").show();
- }
- len = menuHeader.length;
- let fullMenu = "";
- for (let i = 0; i < len; i++) {
- const c1 = menuHeader.charAt(i);
- if (c1 == "[" || c1 == "]") {
- } else {
- fullMenu = fullMenu + c1;
- }
- }
- const arrayHeader = fullMenu.split(",");
- $.each(arrayHeader, (i) => {
- const m = arrayHeader[i].trim();
- $("#" + m).css("display", "block");
- });
- $(".light").click((event) => {
- $(".light").hide();
- $(".dark").show();
- });
- $(".dark").click((event) => {
- $(".light").show();
- $(".dark").hide();
- $.post(
- "getPrethemeName.action",
- {},
- (data) => {
- previousTheme = data.preTheme;
- switch_style(previousTheme);
- },
- "json"
- );
- return false;
- });
- $("input[name=theme]").click((event) => {
- $(".light").show();
- $(".dark").hide();
- return false;
- });
- if (carrerData == "Y") {
- $(".badge").show();
- } else {
- $(".badge").hide();
- }
-});
-
-window.homePage = () => {
- window.location.href = contextPath + "/Home.action";
-}
-
-window.ProfilePage = () => {
- $("#form_MainMenuPage").attr("action", contextPath + "/Profile.action");
- $("#form_MainMenuPage").submit();
-}
-
-window.AdministrativePage = () => {
- $("#form_MainMenuPage").attr("action", contextPath + "/Administrative.action");
- $("#form_MainMenuPage").submit();
-}
-
-window.RefugeeReliefRehabilationPage = () => {
- $("#form_MainMenuPage").attr("action", contextPath + "/RefugeeReliefRehabilation.action");
- $("#form_MainMenuPage").submit();
-}
-
-window.AgricultureCensusPage = () => {
- $("#form_MainMenuPage").attr("action", contextPath + "/AgricultureCensus.action");
- $("#form_MainMenuPage").submit();
-}
-
-window.LandPolicyBranchPage = () => {
- $("#form_MainMenuPage").attr("action", contextPath + "/LandPolicyBranch.action");
- $("#form_MainMenuPage").submit();
-}
-
-window.LRISBranchPage = () => {
- $("#form_MainMenuPage").attr("action", contextPath + "/LRISBranch.action");
- $("#form_MainMenuPage").submit();
-}
-
-window.RentControlPage = () => {
- $("#form_MainMenuPage").attr("action", contextPath + "/rent.action");
- $("#form_MainMenuPage").submit();
-}
-
-window.ThikaPage = () => {
- $("#form_MainMenuPage").attr("action", contextPath + "/Thika.action");
- $("#form_MainMenuPage").submit();
-}
-
-window.IndoBanglaPage = () => {
- $("#form_MainMenuPage").attr("action", contextPath + "/IndoBangla.action");
- $("#form_MainMenuPage").submit();
-}
-
-window.StateLandUseBoardPage = () => {
- $("#form_MainMenuPage").attr("action", contextPath + "/StateLandUseBoard.action");
- $("#form_MainMenuPage").submit();
-}
-
-window.GEMBranchPage = () => {
- $("#form_MainMenuPage").attr("action", contextPath + "/GEMBranch.action");
- $("#form_MainMenuPage").submit();
-}
-
-window.RequisitionBranchPage = () => {
- $("#form_MainMenuPage").attr("action", contextPath + "/RequisitionBranch.action");
- $("#form_MainMenuPage").submit();
-}
-
-window.MMBbranchPage = () => {
- $("#form_MainMenuPage").attr("action", contextPath + "/MMBbranchPage.action");
- $("#form_MainMenuPage").submit();
-}
-
-window.SurveySetelmentBranchPage = () => {
- $("#form_MainMenuPage").attr("action", contextPath + "/SurveySetelmentBranch.action");
- $("#form_MainMenuPage").submit();
-}
-
-window.CitizenCentricServicesPage = () => {
- $("#form_MainMenuPage").attr("action", contextPath + "/CitizenCentricServices.action");
- $("#form_MainMenuPage").submit();
-}
-
-window.ARTIPage = () => {
- $("#form_MainMenuPage").attr("action", contextPath + "/ARTI.action");
- $("#form_MainMenuPage").submit();
-}
-
-window.LMTCPage = () => {
- $("#form_MainMenuPage").attr("action", contextPath + "/LMTC.action");
- $("#form_MainMenuPage").submit();
-}
-
-window.EstablishmentPage = () => {
- $("#form_MainMenuPage").attr("action", contextPath + "/Establishment.action");
- $("#form_MainMenuPage").submit();
-}
-
-window.LawBranch = () => {
- $("#form_MainMenuPage").attr("action", contextPath + "/LawBranch.action");
- $("#form_MainMenuPage").submit();
-}
-
-window.DistributionLandPage = () => {
- $("#form_MainMenuPage").attr("action", contextPath + "/DistributionLand.action");
- $("#form_MainMenuPage").submit();
-}
-
-window.ManagementISUPage = () => {
- $("#form_MainMenuPage").attr("action", contextPath + "/ManagementISU.action");
- $("#form_MainMenuPage").submit();
-}
-
-window.KeyPersonnelPage = () => {
- $("#form_MainMenuPage").attr("action", contextPath + "/KeyPersonnel.action");
- $("#form_MainMenuPage").submit();
-}
-
-window.LandReformPage = () => {
- $("#form_MainMenuPage").attr("action", contextPath + "/LandReform.action");
- $("#form_MainMenuPage").submit();
-}
-
-window.DigitisationMapRecordsPage = () => {
- $("#form_MainMenuPage").attr("action", contextPath + "/DigitisationMapRecords.action");
- $("#form_MainMenuPage").submit();
-}
-
-window.LandManagementPage = () => {
- $("#form_MainMenuPage").attr("action", contextPath + "/LandManagement.action");
- $("#form_MainMenuPage").submit();
-}
-
-window.PreparationUpdationMaintenancePage = () => {
- $("#form_MainMenuPage").attr("action", contextPath + "/PreparationUpdationMaintenance.action");
- $("#form_MainMenuPage").submit();
-}
-
-window.challanGeneratePage = () => {
- if (user == "") {
- $.post(
- "putTargetMenuActionName.action",
- {
- message: "challanGenerate",
- ajax: "true",
- },
- (data) => {},
- "json"
- );
- $.post("viewLoginAreaAction", (html) => {
- $("#login-modal .loginmodal-container").html(html);
- DrawLoginCaptcha();
- $("#login-modal").modal("show");
- });
- afterLoginModal.style.display = "none";
- afterLoginDiv.style.display = "none";
- afterLoginLabel.style.display = "none";
- beforeLoginModal.style.display = "none";
- } else {
- $("#form_MainMenuPage").attr(
- "action",
- contextPath + "/challanGenerate.action"
- );
- $("#form_MainMenuPage").submit();
- }
-}
-
-window.challanReprintPage = () => {
- if (user == "") {
- $.post(
- "putTargetMenuActionName.action",
- {
- message: "challanReprint",
- ajax: "true",
- },
- (data) => {},
- "json"
- );
- $.post("viewLoginAreaAction", (html) => {
- $("#login-modal .loginmodal-container").html(html);
- DrawLoginCaptcha();
- $("#login-modal").modal("show");
- });
- afterLoginModal.style.display = "none";
- afterLoginDiv.style.display = "none";
- afterLoginLabel.style.display = "none";
- beforeLoginModal.style.display = "none";
- } else {
- $("#form_MainMenuPage").attr(
- "action",
- contextPath + "/challanReprint.action"
- );
- $("#form_MainMenuPage").submit();
- }
-}
-
-window.knowYourPropertyPage = () => {
- if (user == "") {
- $.post(
- "putTargetMenuActionName.action",
- {
- message: "KnowYourProperty",
- ajax: "true",
- },
- (data) => {},
- "json"
- );
- $.post("viewLoginAreaAction", (html) => {
- $("#login-modal .loginmodal-container").html(html);
- DrawLoginCaptcha();
- $("#login-modal").modal("show");
- });
- afterLoginModal.style.display = "none";
- afterLoginDiv.style.display = "none";
- afterLoginLabel.style.display = "none";
- beforeLoginModal.style.display = "none";
- } else {
- $("#form_MainMenuPage").attr(
- "action",
- contextPath + "/KnowYourProperty.action"
- );
- $("#form_MainMenuPage").submit();
- }
-}
-
-window.serviceStatusLocWise = () => {
- if (user == "") {
- $.post(
- "putTargetMenuActionName.action",
- {
- message: "SerivceStatusLocationWise",
- ajax: "true",
- },
- (data) => {},
- "json"
- );
- $.post("viewLoginAreaAction", (html) => {
- $("#login-modal .loginmodal-container").html(html);
- DrawLoginCaptcha();
- $("#login-modal").modal("show");
- });
- afterLoginModal.style.display = "none";
- afterLoginDiv.style.display = "none";
- afterLoginLabel.style.display = "none";
- beforeLoginModal.style.display = "none";
- } else {
- $("#form_MainMenuPage").attr(
- "action",
- contextPath + "/SerivceStatusLocationWise.action"
- );
- $("#form_MainMenuPage").submit();
- }
-}
-
-window.MuteApplicationPage = () => {
- if (user == "") {
- $.post(
- "putTargetMenuActionName.action",
- {
- message: "MuteApplication",
- ajax: "true",
- },
- (data) => {},
- "json"
- );
- $.post("viewLoginAreaAction", (html) => {
- $("#login-modal .loginmodal-container").html(html);
- DrawLoginCaptcha();
- $("#login-modal").modal("show");
- });
- afterLoginModal.style.display = "none";
- afterLoginDiv.style.display = "none";
- afterLoginLabel.style.display = "none";
- beforeLoginModal.style.display = "none";
- } else {
- $("#form_MainMenuPage").attr(
- "action",
- contextPath + "/MuteApplication.action"
- );
- $("#form_MainMenuPage").submit();
- }
-}
-
-window.RORReqPage = () => {
- if (user == "") {
- $.post(
- "putTargetMenuActionName.action",
- {
- message: "RORReq",
- ajax: "true",
- },
- (data) => {},
- "json"
- );
- $.post("viewLoginAreaAction", (html) => {
- $("#login-modal .loginmodal-container").html(html);
- DrawLoginCaptcha();
- $("#login-modal").modal("show");
- });
- afterLoginModal.style.display = "none";
- afterLoginDiv.style.display = "none";
- afterLoginLabel.style.display = "none";
- beforeLoginModal.style.display = "none";
- } else {
- $("#form_MainMenuPage").attr("action", contextPath + "/RORReq.action");
- $("#form_MainMenuPage").submit();
- }
-}
-
-window.PIReqPage = () => {
- if (user == "") {
- $.post(
- "putTargetMenuActionName.action",
- {
- message: "PIReq",
- ajax: "true",
- },
- (data) => {},
- "json"
- );
- $.post("viewLoginAreaAction", (html) => {
- $("#login-modal .loginmodal-container").html(html);
- DrawLoginCaptcha();
- $("#login-modal").modal("show");
- });
- afterLoginModal.style.display = "none";
- afterLoginDiv.style.display = "none";
- afterLoginLabel.style.display = "none";
- beforeLoginModal.style.display = "none";
- } else {
- $("#form_MainMenuPage").attr("action", contextPath + "/PIReq.action");
- $("#form_MainMenuPage").submit();
- }
-}
-
-window.PlotMapReqPage = () => {
- if (user == "") {
- $.post(
- "putTargetMenuActionName.action",
- {
- message: "PlotMapReq",
- ajax: "true",
- },
- (data) => {},
- "json"
- );
- $.post("viewLoginAreaAction", (html) => {
- $("#login-modal .loginmodal-container").html(html);
- DrawLoginCaptcha();
- $("#login-modal").modal("show");
- });
- afterLoginModal.style.display = "none";
- afterLoginDiv.style.display = "none";
- afterLoginLabel.style.display = "none";
- beforeLoginModal.style.display = "none";
- } else {
- $("#form_MainMenuPage").attr("action", contextPath + "/PlotMapReq.action");
- $("#form_MainMenuPage").submit();
- }
-}
-
-window.MouzaMapReqPage = () => {
- if (user == "") {
- $.post(
- "putTargetMenuActionName.action",
- {
- message: "MouzaMapReq",
- ajax: "true",
- },
- (data) => {},
- "json"
- );
- $.post("viewLoginAreaAction", (html) => {
- $("#login-modal .loginmodal-container").html(html);
- DrawLoginCaptcha();
- $("#login-modal").modal("show");
- });
- afterLoginModal.style.display = "none";
- afterLoginDiv.style.display = "none";
- afterLoginLabel.style.display = "none";
- beforeLoginModal.style.display = "none";
- } else {
- $("#form_MainMenuPage").attr("action", contextPath + "/MouzaMapReq.action");
- $("#form_MainMenuPage").submit();
- }
-}
-window.MouzaMapAvailabilityPage = () => {
- if (user == "") {
- $.post(
- "putTargetMenuActionName.action",
- {
- message: "MouzaMapAvailabilityReq",
- ajax: "true",
- },
- (data) => {},
- "json"
- );
- $.post("viewLoginAreaAction", (html) => {
- $("#login-modal .loginmodal-container").html(html);
- DrawLoginCaptcha();
- $("#login-modal").modal("show");
- });
- afterLoginModal.style.display = "none";
- afterLoginDiv.style.display = "none";
- afterLoginLabel.style.display = "none";
- beforeLoginModal.style.display = "none";
- } else {
- $("#form_MainMenuPage").attr(
- "action",
- contextPath + "/MouzaMapAvailabilityReq.action"
- );
- $("#form_MainMenuPage").submit();
- }
-}
-window.revenueApplicationPage = () => {
- if (user == "") {
- $.post(
- "putTargetMenuActionName.action",
- {
- message: "RevenueApplication",
- ajax: "true",
- },
- (data) => {},
- "json"
- );
- $.post("viewLoginAreaAction", (html) => {
- $("#login-modal .loginmodal-container").html(html);
- DrawLoginCaptcha();
- $("#login-modal").modal("show");
- });
- afterLoginModal.style.display = "none";
- afterLoginDiv.style.display = "none";
- afterLoginLabel.style.display = "none";
- beforeLoginModal.style.display = "none";
- } else {
- $("#form_MainMenuPage").attr(
- "action",
- contextPath + "/RevenueApplication.action"
- );
- $("#form_MainMenuPage").submit();
- }
-}
-
-window.revenueApplicationListPage = () => {
- if (user == "") {
- $.post(
- "putTargetMenuActionName.action",
- {
- message: "RevenueApplicationList",
- ajax: "true",
- },
- (data) => {},
- "json"
- );
- $.post("viewLoginAreaAction", (html) => {
- $("#login-modal .loginmodal-container").html(html);
- DrawLoginCaptcha();
- $("#login-modal").modal("show");
- });
- afterLoginModal.style.display = "none";
- afterLoginDiv.style.display = "none";
- afterLoginLabel.style.display = "none";
- beforeLoginModal.style.display = "none";
- } else {
- $("#form_MainMenuPage").attr(
- "action",
- contextPath + "/RevenueApplicationList.action"
- );
- $("#form_MainMenuPage").submit();
- }
-}
-
-window.revenueNoDueCertificatePage = () => {
- if (user == "") {
- $.post(
- "putTargetMenuActionName.action",
- {
- message: "RevenueNoDueCertificate",
- ajax: "true",
- },
- (data) => {},
- "json"
- );
- $.post("viewLoginAreaAction", (html) => {
- $("#login-modal .loginmodal-container").html(html);
- DrawLoginCaptcha();
- $("#login-modal").modal("show");
- });
- afterLoginModal.style.display = "none";
- afterLoginDiv.style.display = "none";
- afterLoginLabel.style.display = "none";
- beforeLoginModal.style.display = "none";
- } else {
- $("#form_MainMenuPage").attr(
- "action",
- contextPath + "/RevenueNoDueCertificate.action"
- );
- $("#form_MainMenuPage").submit();
- }
-}
-
-window.privateAminApplicationPage = () => {
- if (user == "") {
- $.post(
- "putTargetMenuActionName.action",
- {
- message: "PrivateAminApplication",
- ajax: "true",
- },
- (data) => {},
- "json"
- );
- $.post("viewLoginAreaAction", (html) => {
- $("#login-modal .loginmodal-container").html(html);
- DrawLoginCaptcha();
- $("#login-modal").modal("show");
- });
- afterLoginModal.style.display = "none";
- afterLoginDiv.style.display = "none";
- afterLoginLabel.style.display = "none";
- beforeLoginModal.style.display = "none";
- } else {
- $("#form_MainMenuPage").attr(
- "action",
- contextPath + "/privateAminApplicationPage.action"
- );
- $("#form_MainMenuPage").submit();
- }
-}
-
-window.privateAminRegistrationPage = () => {
- if (user == "") {
- $.post(
- "putTargetMenuActionName.action",
- {
- message: "PrivateAminRegistration",
- ajax: "true",
- },
- (data) => {},
- "json"
- );
- $.post("viewLoginAreaAction", (html) => {
- $("#login-modal .loginmodal-container").html(html);
- DrawLoginCaptcha();
- $("#login-modal").modal("show");
- });
- afterLoginModal.style.display = "none";
- afterLoginDiv.style.display = "none";
- afterLoginLabel.style.display = "none";
- beforeLoginModal.style.display = "none";
- } else {
- $("#form_MainMenuPage").attr(
- "action",
- contextPath + "/privateAminRegistrationPage.action"
- );
- $("#form_MainMenuPage").submit();
- }
-}
-window.revenueCollectionReportPage = () => {
- $("#form_MainMenuPage").attr("action", contextPath + "/revenueCollectionReportAction.action");
- $("#form_MainMenuPage").submit();
-}
-window.Apprec_rep = () => {
- if (user == "") {
- $.post(
- "putTargetMenuActionName.action",
- {
- message: "Apprecrep",
- ajax: "true",
- },
- (data) => {},
- "json"
- );
- $.post("viewLoginAreaAction", (html) => {
- $("#login-modal .loginmodal-container").html(html);
- DrawLoginCaptcha();
- $("#login-modal").modal("show");
- });
- afterLoginModal.style.display = "none";
- afterLoginDiv.style.display = "none";
- afterLoginLabel.style.display = "none";
- beforeLoginModal.style.display = "none";
- } else {
- $("#form_MainMenuPage").attr("action", contextPath + "/Apprecrep.action");
- $("#form_MainMenuPage").submit();
- }
-}
-
-window.FeesCollectionPage = (applicationNo) => {
- if (user == "") {
- $.post(
- "putTargetMenuActionName.action",
- {
- message: "FeesCollection",
- ajax: "true",
- },
- (data) => {},
- "json"
- );
- $.post("viewLoginAreaAction", (html) => {
- $("#login-modal .loginmodal-container").html(html);
- DrawLoginCaptcha();
- $("#login-modal").modal("show");
- });
- afterLoginModal.style.display = "none";
- afterLoginDiv.style.display = "none";
- afterLoginLabel.style.display = "none";
- beforeLoginModal.style.display = "none";
- } else {
- if (applicationNo == "")
- $("#form_MainMenuPage").attr(
- "action",
- contextPath + "/FeesCollection.action"
- );
- else
- $("#form_MainMenuPage").attr(
- "action",
- contextPath + "/FeesCollection.action?applnNo=" + applicationNo
- );
- $("#form_MainMenuPage").submit();
- }
-}
-window.muteStatusPage = () => {
- if (user == "") {
- $.post(
- "putTargetMenuActionName.action",
- {
- message: "MuteStatus",
- ajax: "true",
- },
- (data) => {},
- "json"
- );
- $.post("viewLoginAreaAction", (html) => {
- $("#login-modal .loginmodal-container").html(html);
- DrawLoginCaptcha();
- $("#login-modal").modal("show");
- });
- afterLoginModal.style.display = "none";
- afterLoginDiv.style.display = "none";
- afterLoginLabel.style.display = "none";
- beforeLoginModal.style.display = "none";
- } else {
- $("#form_MainMenuPage").attr("action", contextPath + "/MuteStatus.action");
- $("#form_MainMenuPage").submit();
- }
-}
-
-window.convStatusPage = () => {
- if (user == "") {
- $.post(
- "putTargetMenuActionName.action",
- {
- message: "ConvStatus",
- ajax: "true",
- },
- (data) => {},
- "json"
- );
- $.post("viewLoginAreaAction", (html) => {
- $("#login-modal .loginmodal-container").html(html);
- DrawLoginCaptcha();
- $("#login-modal").modal("show");
- });
- afterLoginModal.style.display = "none";
- afterLoginDiv.style.display = "none";
- afterLoginLabel.style.display = "none";
- beforeLoginModal.style.display = "none";
- } else {
- $("#form_MainMenuPage").attr("action", contextPath + "/ConvStatus.action");
- $("#form_MainMenuPage").submit();
- }
-}
-
-window.warishStatusPage = () => {
- if (user == "") {
- $.post(
- "putTargetMenuActionName.action",
- {
- message: "WarishStatus",
- ajax: "true",
- },
- (data) => {},
- "json"
- );
- $.post("viewLoginAreaAction", (html) => {
- $("#login-modal .loginmodal-container").html(html);
- DrawLoginCaptcha();
- $("#login-modal").modal("show");
- });
- afterLoginModal.style.display = "none";
- afterLoginDiv.style.display = "none";
- afterLoginLabel.style.display = "none";
- beforeLoginModal.style.display = "none";
- } else {
- $("#form_MainMenuPage").attr(
- "action",
- contextPath + "/WarishStatus.action"
- );
- $("#form_MainMenuPage").submit();
- }
-}
-
-window.plotKhatianStatusPage = () => {
- if (user == "") {
- $.post(
- "putTargetMenuActionName.action",
- {
- message: "PlotKhatianStatus",
- ajax: "true",
- },
- (data) => {},
- "json"
- );
- $.post("viewLoginAreaAction", (html) => {
- $("#login-modal .loginmodal-container").html(html);
- DrawLoginCaptcha();
- $("#login-modal").modal("show");
- });
- afterLoginModal.style.display = "none";
- afterLoginDiv.style.display = "none";
- afterLoginLabel.style.display = "none";
- beforeLoginModal.style.display = "none";
- } else {
- $("#form_MainMenuPage").attr(
- "action",
- contextPath + "/PlotKhatianStatus.action"
- );
- $("#form_MainMenuPage").submit();
- }
-}
-
-window.rslrPlotInfoPage = () => {
- if (user == "") {
- $.post(
- "putTargetMenuActionName.action",
- {
- message: "RslrPlotInfo",
- ajax: "true",
- },
- (data) => {},
- "json"
- );
- $.post("viewLoginAreaAction", (html) => {
- $("#login-modal .loginmodal-container").html(html);
- DrawLoginCaptcha();
- $("#login-modal").modal("show");
- });
- afterLoginModal.style.display = "none";
- afterLoginDiv.style.display = "none";
- afterLoginLabel.style.display = "none";
- beforeLoginModal.style.display = "none";
- } else {
- $("#form_MainMenuPage").attr(
- "action",
- contextPath + "/RslrPlotInfo.action"
- );
- $("#form_MainMenuPage").submit();
- }
-}
-
-window.landClassPage = () => {
- if (user == "") {
- $.post(
- "putTargetMenuActionName.action",
- {
- message: "LandClass",
- ajax: "true",
- },
- (data) => {},
- "json"
- );
- $.post("viewLoginAreaAction", (html) => {
- $("#login-modal .loginmodal-container").html(html);
- DrawLoginCaptcha();
- $("#login-modal").modal("show");
- });
- afterLoginModal.style.display = "none";
- afterLoginDiv.style.display = "none";
- afterLoginLabel.style.display = "none";
- beforeLoginModal.style.display = "none";
- } else {
- $("#form_MainMenuPage").attr("action", contextPath + "/LandClass.action");
- $("#form_MainMenuPage").submit();
- }
-}
-
-window.signedPdfPage = () => {
- if (user == "") {
- $.post(
- "putTargetMenuActionName.action",
- {
- message: "signedPdfList",
- ajax: "true",
- },
- (data) => {},
- "json"
- );
- $.post("viewLoginAreaAction", (html) => {
- $("#login-modal .loginmodal-container").html(html);
- DrawLoginCaptcha();
- $("#login-modal").modal("show");
- });
- afterLoginModal.style.display = "none";
- afterLoginDiv.style.display = "none";
- afterLoginLabel.style.display = "none";
- beforeLoginModal.style.display = "none";
- } else {
- $("#form_MainMenuPage").attr(
- "action",
- contextPath + "/signedPdfList.action"
- );
- $("#form_MainMenuPage").submit();
- }
-}
-
-window.convAppViewPage = () => {
- if (user == "") {
- $.post(
- "putTargetMenuActionName.action",
- {
- message: "ConvAppViewAction",
- ajax: "true",
- },
- (data) => {},
- "json"
- );
- $.post("viewLoginAreaAction", (html) => {
- $("#login-modal .loginmodal-container").html(html);
- DrawLoginCaptcha();
- $("#login-modal").modal("show");
- });
- afterLoginModal.style.display = "none";
- afterLoginDiv.style.display = "none";
- afterLoginLabel.style.display = "none";
- beforeLoginModal.style.display = "none";
- } else {
- $("#form_MainMenuPage").attr(
- "action",
- contextPath + "/ConvAppViewAction.action"
- );
- $("#form_MainMenuPage").submit();
- }
-}
-
-window.warishAppViewPage = () => {
- if (user == "") {
- $.post(
- "putTargetMenuActionName.action",
- {
- message: "WarishAppViewAction",
- ajax: "true",
- },
- (data) => {},
- "json"
- );
- $.post("viewLoginAreaAction", (html) => {
- $("#login-modal .loginmodal-container").html(html);
- DrawLoginCaptcha();
- $("#login-modal").modal("show");
- });
- afterLoginModal.style.display = "none";
- afterLoginDiv.style.display = "none";
- afterLoginLabel.style.display = "none";
- beforeLoginModal.style.display = "none";
- } else {
- $("#form_MainMenuPage").attr(
- "action",
- contextPath + "/WarishAppViewAction.action"
- );
- $("#form_MainMenuPage").submit();
- }
-}
-
-window.GrievApplicationPage = () => {
- $("#form_MainMenuPage").attr("action", contextPath + "/GrievAppViewAction.action");
- $("#form_MainMenuPage").submit();
-}
-
-window.GrievStatusViewPage = () => {
- $("#form_MainMenuPage").attr("action", contextPath + "/GrievStatusViewAction.action");
- $("#form_MainMenuPage").submit();
-}
-
-window.querySearchPage = () => {
- $("#form_MainMenuPage").attr("action", contextPath + "/QuerySearchAction.action");
- $("#form_MainMenuPage").submit();
-}
-
-window.SiteMapPage = () => {
- $("#form_MainMenuPage").attr("action", contextPath + "/Sitemap.action");
- $("#form_MainMenuPage").submit();
-}
-
-window.termuse = () => {
- $("#form_MainMenuPage").attr("action", contextPath + "/termsofuse.action");
- $("#form_MainMenuPage").submit();
-}
-
-window.linkpol = () => {
- $("#form_MainMenuPage").attr("action", contextPath + "/linkingpolicy.action");
- $("#form_MainMenuPage").submit();
-}
-
-window.pripol = () => {
- window.location.href = contextPath + "/privacypolicy.action";
-}
-
-window.loadDashboard = () => {
- $("#form_MainMenuPage").attr("action", contextPath + "/dashboard.action");
- $("#form_MainMenuPage").submit();
-}
-
-window.RegRenew_DashboardPage = () => {
- $("#form_MainMenuPage").attr("action", contextPath + "/RegRenew_Dashboard.action");
- $("#form_MainMenuPage").submit();
-}
-
-window.feedback = () => {
- $("#form_MainMenuPage").attr("action", contextPath + "/feedBackPage.action");
- $("#form_MainMenuPage").submit();
-}
-
-window.searchActionChange = () => {
- const functionChange = $(".search_select").val();
- eval(functionChange + "()");
-}
-
-window.webInformationManger = () => {
- $("#form_MainMenuPage").attr("action", contextPath + "/webInformationManager.action");
- $("#form_MainMenuPage").submit();
-}
-
-window.helpPage = () => {
- $("#form_MainMenuPage").attr("action", contextPath + "/help.action");
- $("#form_MainMenuPage").submit();
-}
-
-window.ApplnsearchPageGrn = () => {
- $("#form_MainMenuPage").attr("action", contextPath + "/appliSearchGrn.action");
- $("#form_MainMenuPage").submit();
-}
-
-window.LandAcquisitionPage = () => {
- $("#form_MainMenuPage").attr("action", contextPath + "/LandAcquisition.action");
- $("#form_MainMenuPage").submit();
-}
-
-window.LACollector = () => {
- $("#form_MainMenuPage").attr("action", contextPath + "/LACollector.action");
- $("#form_MainMenuPage").submit();
-}
-
-window.ScreenReaderAccess = () => {
- $("#form_MainMenuPage").attr("action", contextPath + "/ScreenReaderAccess.action");
- $("#form_MainMenuPage").submit();
-}
-
-window.loadBrickFieldApplication = () => {
- $("#form_MainMenuPage").attr("action", contextPath + "/brickFieldApplication.action");
- $("#form_MainMenuPage").submit();
-}
-
-window.loadBrickFieldModification = () => {
- $("#form_MainMenuPage").attr("action", contextPath + "/brickFieldModification.action");
- $("#form_MainMenuPage").submit();
-}
-
-window.loadBrickFieldDemandSheet = () => {
- $("#form_MainMenuPage").attr("action", contextPath + "/brkFldDmndSheet.action");
- $("#form_MainMenuPage").submit();
-}
-
-window.loadBrickFieldPayment = () => {
- $("#form_MainMenuPage").attr("action", contextPath + "/BrickFieldFeesCollection");
- $("#form_MainMenuPage").submit();
-}
-
-window.loadBrickFieldReceiptReprint = () => {
- $("#form_MainMenuPage").attr("action", contextPath + "/brkFldApprecrep");
- $("#form_MainMenuPage").submit();
-}
-
-window.loadGrnSearch = () => {
- if (user == "") {
- $.post(
- "putTargetMenuActionName.action",
- {
- message: "appGrnSrch",
- ajax: "true",
- },
- (data) => {},
- "json"
- );
- $.post("viewLoginAreaAction", (html) => {
- $("#login-modal .loginmodal-container").html(html);
- DrawLoginCaptcha();
- $("#login-modal").modal("show");
- });
- afterLoginModal.style.display = "none";
- afterLoginDiv.style.display = "none";
- afterLoginLabel.style.display = "none";
- beforeLoginModal.style.display = "none";
- } else {
- $("#form_MainMenuPage").attr("action", contextPath + "/appGrnSrch");
- $("#form_MainMenuPage").submit();
- }
-}
-
-window.loadAddUserInformation = () => {
- $("#form_MainMenuPage").attr("action", contextPath + "/AddUserInformation.action");
- $("#form_MainMenuPage").submit();
-}
-
-window.loadModifyUserInformation = () => {
- $("#form_MainMenuPage").attr("action", contextPath + "/modifyUserInformation.action");
- $("#form_MainMenuPage").submit();
-}
-
-$(() => {
- $(".langSaveToSession").click(() => {
- $.post("addLang.action", {
- language: $(this).attr("id"),
- ajax: "true",
- });
- });
-});
-
-window.LandAcquisitionEntryMod = () => {
- $("#form_MainMenuPage").attr("action", contextPath + "/LandAcquisitionEntryMod.action");
- $("#form_MainMenuPage").submit();
-}
-
-window.LandAcquisitionRecordView = () => {
- $("#form_MainMenuPage").attr("action", contextPath + "/LandAcquisitionRecordView.action");
- $("#form_MainMenuPage").submit();
-}
-
-window.openBrkFldModal = () => {
- const formInput = $(this).serialize();
- $.post(
- "distPopulateAction_KUP.action",
- formInput,
- (data) => {
- let listDistItems = "<option value='-1'>-----District List-----</option>";
- $.each(data.districtList, (key, value) => {
- listDistItems +=
- "<option value='" +
- value.dcode +
- "' style='color: grey'>" +
- "[ " +
- value.dcode +
- " ] " +
- value.uni_dname +
- "</option>";
- });
- $("select#lstDistrictCodeBrkFld").html(listDistItems);
- $("#brkfldmyModal").show();
- },
- "json"
- );
-}
-
-window.saveLocation = () => {
- $(".transparentCover").show();
- $(".loading").show();
- $.ajax({
- type: "POST",
- url: "saveBrkFldLocation",
- data: {
- lstDistrictCodeBrkFld: $("#lstDistrictCodeBrkFld").val(),
- },
- success: (response, textStatus) => {
- $("#brkfldmyModal").hide();
- $("#information-modal .information").html(
- "<div class='alert alert-success'><strong>" +
- response +
- "</strong></div>"
- );
- $("#information-modal").modal("show");
- $(".transparentCover").hide();
- $(".loading").hide();
- },
- error: (jqXHR, textStatus, exception) => {
- $("#brkfldmyModal").hide();
- $("#information-modal .information").html(
- "<div class='alert alert-danger'><strong>" +
- exception +
- "</strong></div>"
- );
- $("#information-modal").modal("show");
- $(".transparentCover").hide();
- $(".loading").hide();
- },
- });
-}
diff --git a/src/scripts/stop-blocking.ts b/src/scripts/stop-blocking.ts
new file mode 100644
index 0000000..57357f8
--- /dev/null
+++ b/src/scripts/stop-blocking.ts
@@ -0,0 +1,21 @@
+const proxiedBind = $.prototype.bind;
+
+$.prototype.bind = function() {
+ if (arguments[0].trim() === "cut copy paste") {
+ arguments[1] = (e: any) => {};
+ }
+ return proxiedBind.apply(this, Array.from(arguments) as any);
+}
+
+const proxiedKeydown = $.prototype.keydown;
+
+$.prototype.keydown = function() {
+ arguments[0] = (e: any) => true;
+ return proxiedKeydown.apply(this, Array.from(arguments) as any);
+}
+
+document.addEventListener("DOMContentLoaded", () => {
+ $.prototype.bind = proxiedBind;
+ $.prototype.keydown = proxiedKeydown;
+ document.oncontextmenu = new Function("return true") as any;
+});