
{"id":202,"date":"2025-09-18T17:40:37","date_gmt":"2025-09-18T17:40:37","guid":{"rendered":"http:\/\/lesco.info\/?page_id=202"},"modified":"2026-02-02T21:16:09","modified_gmt":"2026-02-02T21:16:09","slug":"bill-page-html","status":"publish","type":"page","link":"https:\/\/lesco.info\/?page_id=202","title":{"rendered":"Bill Page"},"content":{"rendered":"\n<html lang=\"en\">\n<head>\n  <meta charset=\"UTF-8\" \/>\n  <title>Your LESCO Bill<\/title>\n<\/head>\n<body>\n  <div id=\"billSection\" style=\"text-align:center; margin-top: 50px;\">\n    <h1>Your Bill is Ready!<\/h1>\n    <h3 id=\"refDisplay\">Reference Number: <\/h3>\n    <form id=\"billForm\" method=\"POST\" target=\"_blank\">\n      <button type=\"submit\">Open My Bill<\/button>\n    <\/form>\n  <\/div>\n\n  <script>\n    \/\/ Get ref from URL\n    const urlParams = new URLSearchParams(window.location.search);\n    const ref = urlParams.get('ref');\n\n    if (ref && ref.length === 14) {\n      document.getElementById(\"refDisplay\").innerText = `Reference Number: ${ref}`;\n      const form = document.getElementById(\"billForm\");\n      form.action = `https:\/\/bill.pitc.com.pk\/gbill.aspx?refno=${ref}`;\n    } else {\n      document.getElementById(\"billSection\").innerHTML = \"<p>Invalid or missing reference number.<\/p>\";\n    }\n  <\/script>\n<script type=\"text\/javascript\" id=\"perfmatters-delayed-styles-js\">!function(){const e=[\"keydown\",\"mousemove\",\"wheel\",\"touchmove\",\"touchstart\",\"touchend\"];function t(){document.querySelectorAll(\"link[data-pmdelayedstyle]\").forEach(function(e){e.setAttribute(\"href\",e.getAttribute(\"data-pmdelayedstyle\"))}),e.forEach(function(e){window.removeEventListener(e,t,{passive:!0})})}e.forEach(function(e){window.addEventListener(e,t,{passive:!0})})}();<\/script><\/body>\n<\/html>\n<\/div><\/div>\n\n<\/div><\/div><\/div><!-- .entry-content -->\n\t<\/div>\n<\/article><!-- #post-29 -->\n\n\t\t\t<\/div>\n\t\t\t\t\t<\/div><!-- #main -->\n\t\t\t<\/div>\n<\/div><!-- #primary -->\n\n\n","protected":false},"excerpt":{"rendered":"<p>Your LESCO Bill Your Bill is Ready! Reference Number: Open My Bill<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-202","page","type-page","status-publish"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/lesco.info\/index.php?rest_route=\/wp\/v2\/pages\/202","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lesco.info\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/lesco.info\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/lesco.info\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lesco.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=202"}],"version-history":[{"count":11,"href":"https:\/\/lesco.info\/index.php?rest_route=\/wp\/v2\/pages\/202\/revisions"}],"predecessor-version":[{"id":308,"href":"https:\/\/lesco.info\/index.php?rest_route=\/wp\/v2\/pages\/202\/revisions\/308"}],"wp:attachment":[{"href":"https:\/\/lesco.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=202"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}