diff options
| author | Arpit Chakladar <54011232+arpitchakladar@users.noreply.github.com> | 2024-07-30 12:40:57 +0530 |
|---|---|---|
| committer | Arpit Chakladar <54011232+arpitchakladar@users.noreply.github.com> | 2024-07-30 12:40:57 +0530 |
| commit | 60fa822ab38b6d8d2db7c553c779043858c30eb2 (patch) | |
| tree | 293ddadb1decc2c385f9537fae03b353151fb8c9 | |
| parent | b9c9a315efce8bddf765c62352c0966595b31c46 (diff) | |
| download | banglar-bhumi-utils-60fa822ab38b6d8d2db7c553c779043858c30eb2.tar.gz banglar-bhumi-utils-60fa822ab38b6d8d2db7c553c779043858c30eb2.zip | |
Removed the banner image from the bottom of the khatian pdf download page.
| -rw-r--r-- | src/scripts/functionality/view-khatian/download-information-pdf-page-content.html | 30 | ||||
| -rw-r--r-- | src/scripts/functionality/view-khatian/index.ts | 3 | ||||
| -rw-r--r-- | static/assets/sangha-facilitation-centre-banner.jpg | bin | 43747 -> 0 bytes |
3 files changed, 0 insertions, 33 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 5b26469..129608e 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 @@ -190,19 +190,6 @@ width: 50%; } - footer { - heigth: 5rem; - width: 100%; - } - - footer > img { - width: 210mm; - height: 5rem !important; - background: transparent; - position: fixed; - bottom: 0; - } - body { width: 210mm !important; height: 297mm !important; @@ -212,9 +199,6 @@ </style> <img class="banner" src="https://banglarbhumi.gov.in/BanglarBhumi/images/bl.png"> <div class="details">$details$</div> - <footer> - <img class="footer" src="$sanghaFacilitationCentreBannerUrl$"> - </footer> <script> let tableBodyElement; const createTableEntry = (label, value) => { @@ -250,20 +234,6 @@ img.onload = img.onerror = resolve; })) ).then(() => { - const rem = parseFloat(getComputedStyle(document.documentElement).fontSize); - const headerRowHeight = document.getElementById("headertitle").offsetHeight; - const footerHeight = document.querySelector("footer > img").offsetHeight; - const pageHeight = document.body.offsetHeight - (footerHeight + rem); - let offset = -document.querySelector("div > img").getBoundingClientRect().top; - - for (const tableRowElement of Array.from(document.querySelectorAll($isPlotInformation$ ? "#plot-information > div:nth-child(1) > div:nth-child(5) > table > tbody > tr" : "#khatian-information > table > tbody > tr > td:nth-child(1) > div:nth-child(5) > table > tbody > tr"))) { - const tableRowElementDOMRect = tableRowElement.getBoundingClientRect(); - if (tableRowElementDOMRect.y + offset + tableRowElementDOMRect.height >= pageHeight) { - tableRowElement.style.pageBreakBefore = "always"; - offset -= pageHeight - (headerRowHeight + rem); - } - } - window.addEventListener("afterprint", window.close); window.print(); }); diff --git a/src/scripts/functionality/view-khatian/index.ts b/src/scripts/functionality/view-khatian/index.ts index 741a3d0..93d03cf 100644 --- a/src/scripts/functionality/view-khatian/index.ts +++ b/src/scripts/functionality/view-khatian/index.ts @@ -2,8 +2,6 @@ import { generateWebPage } from "@/shared/generate-web-page"; import { interceptPost } from "@/shared/intercept-jquery-ajax"; import getDownloadInformationPDFPageContent from "@/scripts/functionality/view-khatian/download-information-pdf-page-content.html"; -const sanghaFacilitationCentreBannerUrl = "$l{ /assets/sangha-facilitation-centre-banner.jpg }l$"; - const submitButtonElement = $("#khbutton"); const separatorElement = $("#bodycover > div > form > hr:nth-child(2)"); const formElement = $("#bodycover > div > form"); @@ -26,7 +24,6 @@ let isPlotInformation: boolean | null = null; const downloadInformationPDF = () => { generateWebPage( getDownloadInformationPDFPageContent({ - sanghaFacilitationCentreBannerUrl, isPlotInformation: !!isPlotInformation, details: $(isPlotInformation ? "#plotdetails" : "#khdetails").html(), district: getValueOfSelectElement("#lstDistrictCode1"), diff --git a/static/assets/sangha-facilitation-centre-banner.jpg b/static/assets/sangha-facilitation-centre-banner.jpg Binary files differdeleted file mode 100644 index b182ab3..0000000 --- a/static/assets/sangha-facilitation-centre-banner.jpg +++ /dev/null |
