{"id":1169,"date":"2023-06-01T00:32:19","date_gmt":"2023-06-01T00:32:19","guid":{"rendered":"https:\/\/digimaxcontrol.com\/?page_id=1169"},"modified":"2023-06-01T09:45:42","modified_gmt":"2023-06-01T09:45:42","slug":"verify","status":"publish","type":"page","link":"https:\/\/digimaxcontrol.com\/index.php\/verify\/","title":{"rendered":"Verify"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"1169\" class=\"elementor elementor-1169\" data-elementor-post-type=\"page\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-5fd408a9 elementor-section-full_width elementor-section-stretched elementor-section-height-default elementor-section-height-default\" data-id=\"5fd408a9\" data-element_type=\"section\" data-e-type=\"section\" data-settings=\"{&quot;stretch_section&quot;:&quot;section-stretched&quot;,&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-61235f8c\" data-id=\"61235f8c\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-164848e elementor-widget elementor-widget-heading\" data-id=\"164848e\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t\t<h3 class=\"elementor-heading-title elementor-size-default\">Certificate or Document Verification<\/h3>\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-7774b14b elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"7774b14b\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-39f88036\" data-id=\"39f88036\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-59908aa1 elementor-widget elementor-widget-spacer\" data-id=\"59908aa1\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"spacer.default\">\n\t\t\t\t\t\t\t<div class=\"elementor-spacer\">\n\t\t\t<div class=\"elementor-spacer-inner\"><\/div>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-43fa0fa elementor-widget elementor-widget-spacer\" data-id=\"43fa0fa\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"spacer.default\">\n\t\t\t\t\t\t\t<div class=\"elementor-spacer\">\n\t\t\t<div class=\"elementor-spacer-inner\"><\/div>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t<div class=\"elementor-element elementor-element-65d08f5e e-flex e-con-boxed e-con e-parent\" data-id=\"65d08f5e\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-80adc46 elementor-widget elementor-widget-html\" data-id=\"80adc46\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t\t<html>\r\n<head>\r\n    \r\n  <title>File Link Generator<\/title>\r\n  <script>\r\n    function generateFileLink() {\r\n      \/\/ Get the user input\r\n      var fileName = document.getElementById(\"fileName\").value;\r\n    \/\/ Add a text prefix to the file name\r\n      var prefixedFileName = fileName + \".pdf\";\r\n      \/\/ Perform an AJAX request to check if the file exists\r\n      var xhr = new XMLHttpRequest();\r\n      xhr.onreadystatechange = function() {\r\n        if (xhr.readyState === XMLHttpRequest.DONE) {\r\n          if (xhr.status === 200) {\r\n            \/\/ File exists, redirect to the file link\r\n            var fileLink = \"https:\/\/digimaxcontrol.com\/wp-content\/verify\/\" + fileName + \".pdf\";\r\n            window.location.href = fileLink;\r\n          } else {\r\n            \/\/ File does not exist, display an error message\r\n            var errorMessage = \"Invalid reference Number.\";\r\n            document.getElementById(\"fileLink\").textContent = errorMessage;\r\n          }\r\n        }\r\n      };\r\n      xhr.open(\"GET\", \"\/wp-content\/verify\/check_file.php?fileName=\" + prefixedFileName, true);\r\n      xhr.send();\r\n    }\r\n  <\/script>\r\n<\/head>\r\n<body>\r\n    <center>\r\n  <h3>Enter Certificate or Document Ref#<\/h3>\r\n  <form onsubmit=\"event.preventDefault(); generateFileLink();\">\r\n    <label for=\"fileName\">Reference Number:<\/label>\r\n    <input type=\"text\" id=\"fileName\" required>\r\n    <button type=\"submit\">Verify<\/button>\r\n  <\/form>\r\n  <p id=\"fileLink\"><\/p>\r\n  <\/center>\r\n<\/body>\r\n<\/html>\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-3ada58e e-flex e-con-boxed e-con e-parent\" data-id=\"3ada58e\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-8366f6c e-flex e-con-boxed e-con e-parent\" data-id=\"8366f6c\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-d670aac elementor-widget elementor-widget-spacer\" data-id=\"d670aac\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"spacer.default\">\n\t\t\t\t\t\t\t<div class=\"elementor-spacer\">\n\t\t\t<div class=\"elementor-spacer-inner\"><\/div>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Certificate or Document Verification File Link Generator Enter Certificate or Document Ref# Reference Number: Verify<\/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-1169","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/digimaxcontrol.com\/index.php\/wp-json\/wp\/v2\/pages\/1169","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/digimaxcontrol.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/digimaxcontrol.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/digimaxcontrol.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/digimaxcontrol.com\/index.php\/wp-json\/wp\/v2\/comments?post=1169"}],"version-history":[{"count":16,"href":"https:\/\/digimaxcontrol.com\/index.php\/wp-json\/wp\/v2\/pages\/1169\/revisions"}],"predecessor-version":[{"id":1203,"href":"https:\/\/digimaxcontrol.com\/index.php\/wp-json\/wp\/v2\/pages\/1169\/revisions\/1203"}],"wp:attachment":[{"href":"https:\/\/digimaxcontrol.com\/index.php\/wp-json\/wp\/v2\/media?parent=1169"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}