{"id":4564,"date":"2025-02-18T01:01:02","date_gmt":"2025-02-18T06:01:02","guid":{"rendered":"https:\/\/exactvalueofmyhome.com\/?page_id=4564"},"modified":"2025-03-01T01:22:42","modified_gmt":"2025-03-01T06:22:42","slug":"ms-form","status":"publish","type":"page","link":"http:\/\/exactvalueofmyhome.com\/","title":{"rendered":"MS FORM"},"content":{"rendered":"\n<div style=\"text-align: center;\">\n<img decoding=\"async\" src=\"http:\/\/exactvalueofmyhome.com\/wp-content\/uploads\/2025\/03\/8121334.gif\" alt=\"GIF Description\" style=\"max-width: 10% !important; height: auto;\" \/>\n<\/div>\n\n\n    <div class=\"ms-form-container\">\r\n        <h2><i class=\"fas fa-home\"><\/i> How Much is Your Home Worth?<\/h2>\r\n        <h6>Find out in 3 easy steps\u2026<\/h6>\r\n        <form method=\"post\" id=\"step1-form\">\r\n            <div class=\"ms-form-group\">\r\n                <label for=\"autocomplete\">\r\n                    <i class=\"fas fa-map-marker-alt\"><\/i> Enter your address *\r\n                <\/label>\r\n                <input type=\"text\" name=\"address\" id=\"autocomplete\" placeholder=\"Enter your address\" required>\r\n            <\/div>\r\n            <div class=\"ms-form-group\">\r\n                <label>\r\n                    <i class=\"fas fa-building\"><\/i> Enter your Unit no. (optional)\r\n                <\/label>\r\n                <input type=\"text\" name=\"unit\" placeholder=\"Enter your Unit no. if available\">\r\n            <\/div>\r\n            <input type=\"hidden\" name=\"ms_step\" value=\"1\">\r\n            <div class=\"ms-form-group\">\r\n                <button type=\"button\" class=\"ms-btn\" id=\"confirm-step1\">\r\n                    Next Step <i class=\"fas fa-arrow-right\"><\/i>\r\n                <\/button>\r\n            <\/div>\r\n        <\/form>\r\n    <\/div>\r\n\r\n   <!-- Popup Modal -->\r\n<div id=\"confirm-popup\" class=\"popup-overlay\">\r\n    <div class=\"popup-content\">\r\n        <p>Confirm your location and unit:<\/p>\r\n        <p><strong>Address:<\/strong> <span id=\"popup-address\"><\/span><\/p>\r\n        <p><strong>Unit:<\/strong> <span id=\"popup-unit\"><\/span><\/p>\r\n        \r\n        <!-- Google Map Container -->\r\n        <div id=\"popup-map\" style=\"width: 100%; height: 300px; margin-top: 10px;\"><\/div>\r\n        \r\n        <button id=\"confirm-yes\" class=\"popup-btn\">Yes<\/button>\r\n        <button id=\"confirm-no\" class=\"popup-btn\">No<\/button>\r\n    <\/div>\r\n<\/div>\r\n\r\n<script>\r\njQuery(document).ready(function ($) {\r\n    $(\"#confirm-step1\").on(\"click\", function () {\r\n        let address = $(\"input[name='address']\").val();\r\n        let unit = $(\"input[name='unit']\").val();\r\n\r\n        if (!address.trim()) {\r\n            alert(\"Please enter your address.\");\r\n            return;\r\n        }\r\n\r\n        $(\"#popup-address\").text(address);\r\n        $(\"#popup-unit\").text(unit ? unit : \"N\/A\");\r\n\r\n        \/\/ Load Google Map\r\n       let mapUrl = `https:\/\/www.google.com\/maps\/embed\/v1\/place?key=AIzaSyBr_VAmY9-x_9FfhD3jAO9RAsVrTJXB_Xs&q=${encodeURIComponent(address)}&maptype=satellite&zoom=20`;\r\n        $(\"#popup-map\").html(`<iframe width=\"100%\" height=\"300\" frameborder=\"0\" style=\"border:0\" allowfullscreen src=\"${mapUrl}\"><\/iframe>`);\r\n\r\n        $(\"#confirm-popup\").fadeIn();\r\n    });\r\n\r\n    $(\"#confirm-yes\").on(\"click\", function () {\r\n        $(\"#step1-form\").submit();\r\n    });\r\n\r\n    $(\"#confirm-no\").on(\"click\", function () {\r\n        $(\"#confirm-popup\").fadeOut();\r\n    });\r\n});\r\n<\/script>\r\n\r\n<style>\r\n.popup-overlay {\r\n    display: none;\r\n    position: fixed;\r\n    top: 0;\r\n    left: 0;\r\n    width: 100%;\r\n    height: 100%;\r\n    background: rgba(0, 0, 0, 0.5);\r\n    z-index: 1000;\r\n}\r\n\r\n.popup-content {\r\n    background: white;\r\n    padding: 20px;\r\n    max-width: 400px;\r\n    margin: 10% auto;\r\n    text-align: center;\r\n    border-radius: 8px;\r\n}\r\n\r\n.popup-btn {\r\n    background: #0073aa;\r\n    color: white;\r\n    border: none;\r\n    padding: 10px 20px;\r\n    margin: 10px;\r\n    cursor: pointer;\r\n}\r\n\r\n.popup-btn:hover {\r\n    background: #005a87;\r\n}\r\n<\/style>\r\n\r\n    ","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-4564","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"http:\/\/exactvalueofmyhome.com\/index.php\/wp-json\/wp\/v2\/pages\/4564","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/exactvalueofmyhome.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/exactvalueofmyhome.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/exactvalueofmyhome.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/exactvalueofmyhome.com\/index.php\/wp-json\/wp\/v2\/comments?post=4564"}],"version-history":[{"count":8,"href":"http:\/\/exactvalueofmyhome.com\/index.php\/wp-json\/wp\/v2\/pages\/4564\/revisions"}],"predecessor-version":[{"id":4595,"href":"http:\/\/exactvalueofmyhome.com\/index.php\/wp-json\/wp\/v2\/pages\/4564\/revisions\/4595"}],"wp:attachment":[{"href":"http:\/\/exactvalueofmyhome.com\/index.php\/wp-json\/wp\/v2\/media?parent=4564"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}