aboutsummaryrefslogtreecommitdiffstats
path: root/src/scripts/functionality/view-khatian/download-information-pdf-page-content.html
diff options
context:
space:
mode:
authorArpit Chakladar <54011232+arpitchakladar@users.noreply.github.com>2024-07-28 09:49:26 +0530
committerArpit Chakladar <54011232+arpitchakladar@users.noreply.github.com>2024-07-28 09:49:26 +0530
commitaa7d86dbf28ece5a90c3848262d6a75b45370cfe (patch)
treecddfbcb4c0717bca9ef9f532ff60317539e6bf74 /src/scripts/functionality/view-khatian/download-information-pdf-page-content.html
parente7bc5246987c5ac30995308595680ac280ada75b (diff)
downloadbanglar-bhumi-utils-aa7d86dbf28ece5a90c3848262d6a75b45370cfe.tar.gz
banglar-bhumi-utils-aa7d86dbf28ece5a90c3848262d6a75b45370cfe.zip
Added ability to download mouza maps.
Fixed view khatian and plot information download.
Diffstat (limited to 'src/scripts/functionality/view-khatian/download-information-pdf-page-content.html')
-rw-r--r--src/scripts/functionality/view-khatian/download-information-pdf-page-content.html8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/scripts/functionality/view-khatian/download-information-pdf-page-content.html b/src/scripts/functionality/view-khatian/download-information-pdf-page-content.html
index 44ced4f..668c36a 100644
--- a/src/scripts/functionality/view-khatian/download-information-pdf-page-content.html
+++ b/src/scripts/functionality/view-khatian/download-information-pdf-page-content.html
@@ -211,7 +211,8 @@
}
</style>
<img class="banner" src="https://banglarbhumi.gov.in/BanglarBhumi/images/bl.png">
- <div class="details" id="$isPlotInformation$">$details$</div>
+ <!--<button id="print-button">Print</button>-->
+ <div class="details">$details$</div>
<footer>
<img class="footer" src="$sanghaFacilitationCentreBannerUrl$">
</footer>
@@ -229,20 +230,21 @@
};
if ($isPlotInformation$) {
+ document.querySelector(".details").setAttribute("id", "plot-information");
const tableElement = document.createElement("table");
tableElement.setAttribute("id", "locater-information");
tableBodyElement = document.createElement("tbody");
tableElement.appendChild(tableBodyElement);
- const detailsElement = document.querySelector("#plot-information > div:nth-child(1)");
+ const detailsElement = document.querySelector(".details > div:nth-child(1)");
detailsElement.insertBefore(tableElement, detailsElement.querySelector("div:nth-child(2)"));
} else {
+ document.querySelector(".details").setAttribute("id", "khatian-information");
tableBodyElement = document.querySelector(".details > table > tbody > tr > td:nth-child(1) > div:nth-child(2) > table > tbody");
}
createTableEntry("\u{99C}\u{9C7}\u{9B2}\u{9BE} (District):", "$district$");
createTableEntry("\u{9AC}\u{9CD}\u{9B2}\u{995} (Block):", "$block$");
createTableEntry("\u{9AE}\u{9CC}\u{99C}\u{9BE} (Mouza):", "$mouza$");
-
Promise.all(
Array.from(document.images)
.filter(img => !img.complete).map(img => new Promise(resolve => {