{"id":566,"date":"2024-02-01T19:10:07","date_gmt":"2024-02-01T19:10:07","guid":{"rendered":"https:\/\/westarrealestate.ca\/home-evaluation\/"},"modified":"2024-03-27T14:27:05","modified_gmt":"2024-03-27T14:27:05","slug":"%e6%88%bf%e4%ba%a7%e8%af%84%e4%bc%b0","status":"publish","type":"page","link":"https:\/\/westarrealestate.ca\/zh-hans\/%e6%88%bf%e4%ba%a7%e8%af%84%e4%bc%b0\/","title":{"rendered":"\u623f\u4ea7\u8bc4\u4f30"},"content":{"rendered":"\r\n    <div class=\"homeEvalutation text-center\">\r\n        <h1 class=\"text-center text-white\">\u60a8\u623f\u4ea7\u7684\u5e02\u573a\u4ef7\u503c\u662f\u591a\u5c11\uff1f<\/h1>\r\n        <!--<h5 class=\"text-center\"><\/h5>-->\r\n        <form id=\"homeEval\" class=\"regform\" method=\"POST\">\r\n            <input type=\"hidden\" name=\"action\" value=\"mw_home_evaluation\">\r\n            <input type=\"hidden\" name=\"url\"\r\n                   value=\"http:\/\/westarrealestate.ca\/zh-hans\/wp-json\/wp\/v2\/pages\/566\">\r\n            <!-- Fieldsets -->\r\n            <fieldset id=\"first\">\r\n                <!--<h2 class=\"title\"><\/h2>-->\r\n                <div class=\"row align-items-center\">\r\n                    <div class=\"col-lg-10 col-sm-10 col-xs-12\">\r\n                        <input type=\"text\" class=\"text_field\" name=\"location\" id=\"location\"\r\n                               placeholder=\"\u8f93\u5165\u60a8\u7684\u5730\u5740\u5f00\u59cb\" autocomplete=\"off\">\r\n                    <\/div>\r\n\r\n                    <div class=\"col-lg-2 col-sm-2 col-xs-12\">\r\n                        <input type=\"text\" class=\"text_field\" name=\"apartment\" id=\"apartment\" placeholder=\"Apt#\">\r\n                    <\/div>\r\n                <\/div>\r\n                <div class=\"row\">\r\n                    <div class=\"col-lg-12 col-sm-12\">\r\n                        <input class=\"next_btn\" name=\"next\" id=\"step2\" type=\"button\"\r\n                               value=\"\u4e0b\u4e00\u4e2a\">\r\n                    <\/div>\r\n                <\/div>\r\n            <\/fieldset>\r\n            <fieldset id=\"second\">\r\n                <div class=\"title-wrapper\">\r\n                    <p>\u627e\u5230\u7269\u4e1a\u4e86!\u60a8\u5e0c\u671b\u6211\u4eec\u5c06\u60a8\u7684\u5bb6\u5ead\u8bc4\u4f30\u62a5\u544a\u53d1\u9001\u5230\u4f55\u5904\uff1f<\/p>\r\n                <\/div>\r\n                <div class=\"row align-items-center\">\r\n                    <div class=\"col-lg-6 col-sm-12\">\r\n                        <div class=\"map\" id=\"map\"><\/div>\r\n                    <\/div>\r\n\r\n                    <div class=\"col-lg-6 col-sm-12\">\r\n                        <div class=\"info\">\r\n                            <input class=\"text_field\" name=\"name\"\r\n                                   placeholder=\"\u4f60\u7684\u540d\u5b57\"\r\n                                   type=\"text\">\r\n                            <input class=\"text_field\" name=\"email\"\r\n                                   placeholder=\"\u4f60\u7684\u90ae\u7bb1\"\r\n                                   type=\"text\">\r\n                            <input class=\"text_field\" name=\"phone\"\r\n                                   placeholder=\"\u60a8\u7684\u7535\u8bdd\"\r\n                                   type=\"text\">\r\n                            <select class=\"options\" name=\"selling\">\r\n                                <option value=\"--Selling In--\">--\u9500\u552e\u65b9\u5f0f--<\/option>\r\n                                <option value=\"1-3 Months\">1-3\u4e2a\u6708<\/option>\r\n                                <option value=\"3-6 Months\">3-6<\/option>\r\n                                <option value=\"6-12 Months\">6-12<\/option>\r\n                                <option value=\"Just Curious\">\r\n                                    Par curiosit\u00e9                                <\/option>\r\n                                <option value=\"Refinancing\">\u878d\u8d44<\/option>\r\n                            <\/select>\r\n                        <\/div>\r\n\r\n                        <input class=\"pre_btn\" name=\"previous\" type=\"button\"\r\n                               value=\"\u4e0a\u4e00\u4e2a\">\r\n                        <input class=\"next_btn\" name=\"next\" id=\"submitEmail\" type=\"button\"\r\n                               value=\"\u4e0b\u4e00\u4e2a\">\r\n\r\n                    <\/div>\r\n                <\/div>\r\n\r\n            <\/fieldset>\r\n            <fieldset id=\"third\">\r\n                <div class=\"col-lg-12 col-xs-12\">\r\n                    <div class=\"content\">\r\n                        <p>\u6211\u4eec\u5c06\u5c3d\u5feb\u4e0e\u60a8\u8054\u7cfb\uff0c\u4e3a\u60a8\u63d0\u4f9b\u4e00\u4efd\u5b8c\u6574\u7684\u623f\u4ea7\u4ef7\u503c\u5206\u6790\u62a5\u544a\u3002<\/p>\r\n                    <\/div>\r\n                <\/div>\r\n            <\/fieldset>\r\n            <!-- Progress Bar -->\r\n\r\n            <div class=\"row justify-content-center mt-4\">\r\n                <div class=\"col-lg-4 col-md-4 col-sm-6 col-xs-12\">\r\n                    <div class=\"single-s s1 active\">\r\n                        \u7b2c\u4e00\u6b65 <br>\r\n                        \u7269\u4e1a\u5730\u5740                    <\/div>\r\n                <\/div>\r\n\r\n                <div class=\"col-lg-4 col-md-4 col-sm-6 col-xs-12\">\r\n                    <div class=\"single-s s2\">\r\n                        \u7b2c\u4e8c\u6b65 <br>\r\n                        \u623f\u6e90\u8be6\u60c5                    <\/div>\r\n                <\/div>\r\n\r\n                <div class=\"col-lg-4 col-md-4 col-sm-6 col-xs-12\">\r\n                    <div class=\"single-s s3\">\r\n                        \u7b2c\u4e09\u6b65 <br>\r\n                        \u514d\u8d39\u5bb6\u5ead\u8bc4\u4f30                    <\/div>\r\n                <\/div>\r\n            <\/div>\r\n        <\/form>\r\n    <\/div>\r\n    <script>\r\n        (function ($) {\r\n            $(document).ready(function () {\r\n                $(\"#step2\").click(function () {\r\n                    if ($('input[name=\"location\"]').val() == \"\") {\r\n                        alert(\"Location field is necessary!\");\r\n                        return false;\r\n                    } else {\r\n                        $('#second').fadeIn('slow');\r\n                        $('#first').css({'display': 'none'});\r\n                        $('.s2').addClass('active');\r\n\r\n                        let center = map.getCenter();\r\n                        google.maps.event.trigger(map, 'resize');\r\n                        map.setCenter(center);\r\n\r\n                        return true;\r\n                    }\r\n                });\r\n\r\n                $(\".pre_btn\").click(function () {\r\n                    $('#first').fadeIn('slow');\r\n                    $('#second').css({'display': 'none'});\r\n\r\n                    $('.s2').removeClass('active');\r\n                });\r\n\r\n                $(\"#submitEmail\").click(function () {\r\n                    let re = \/^(([^<>()[\\]\\\\.,;:\\s@\"]+(\\.[^<>()[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$\/;\r\n                    if ($('input[name=\"name\"]').val() == \"\") {\r\n                        alert(\"Name field is invalid!\");\r\n                        return false;\r\n                    } else if (!re.test($('input[name=\"email\"]').val())) {\r\n                        alert(\"Email field is invalid!\");\r\n                        return false;\r\n                    } else if ($('input[name=\"phone\"]').val() == \"\") {\r\n                        alert(\"Phone field is invalid!\");\r\n                        return false;\r\n                    } else {\r\n                        let el = $(this);\r\n                        $.ajax({\r\n                            type: \"POST\",\r\n                            url: realEstateJs.ajaxUrl,\r\n                            data: $(\"#homeEval\").serialize(),\r\n                            success: function (data) {\r\n                                console.log(data);\r\n                                if (data.success) {\r\n                                    $(el).parent().next().fadeIn('slow');\r\n                                    $(el).parent().css({'display': 'none'});\r\n                                    $('.active').next().addClass('active');\r\n                                }\r\n                            },\r\n                            error: function (e) {\r\n                                console.log(e.responseText);\r\n                            }\r\n                        });\r\n\r\n                        $('.s3').addClass('active');\r\n                        $('#third').fadeIn('slow');\r\n                        $('#second').css({'display': 'none'});\r\n                    }\r\n                });\r\n            });\r\n\r\n            \/\/Autocomplete variables\r\n            let input = document.getElementById('location'),\r\n                step2 = document.getElementById('step2'),\r\n                place;\r\n\r\n            let observerHack = new MutationObserver(function () {\r\n                observerHack.disconnect();\r\n                $(\"#location\").attr(\"autocomplete\", \"new-password\").attr(\"disabled\", false);\r\n            });\r\n\r\n            observerHack.observe(input, {\r\n                attributes: true,\r\n                attributeFilter: ['autocomplete']\r\n            });\r\n\r\n            let autocomplete = new google.maps.places.Autocomplete(input);\r\n\r\n            \/\/Google Map variables\r\n            let map, marker;\r\n\r\n            \/\/Add listener to detect autocomplete selection\r\n            google.maps.event.addListener(autocomplete, 'place_changed', function () {\r\n                place = autocomplete.getPlace();\r\n            });\r\n\r\n            \/\/Add listener to search\r\n            step2.addEventListener(\"click\", function () {\r\n                let newlatlong = new google.maps.LatLng(place.geometry.location.lat(), place.geometry.location.lng());\r\n                map.setCenter(newlatlong);\r\n                marker.setPosition(newlatlong);\r\n                map.setZoom(18);\r\n                map.setMapTypeId(google.maps.MapTypeId.SATELLITE);\r\n            });\r\n\r\n            \/\/Reset the inpout box on click\r\n            input.addEventListener('click', function () {\r\n                \/\/input.value = \"\";\r\n            });\r\n\r\n            function initialize() {\r\n                let myLatlng = new google.maps.LatLng(45.5549753, -73.9491394);\r\n                let mapOptions = {\r\n                    zoom: 1,\r\n                    center: myLatlng\r\n                };\r\n\r\n                map = new google.maps.Map(document.getElementById('map'), mapOptions);\r\n\r\n                marker = new google.maps.Marker({\r\n                    position: myLatlng,\r\n                    map: map,\r\n                    title: 'Main map'\r\n                });\r\n            }\r\n\r\n            google.maps.event.addDomListener(window, 'load', initialize);\r\n        }(jQuery));\r\n    <\/script>\r\n    \n","protected":false},"excerpt":{"rendered":"","protected":false},"author":47,"featured_media":903,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"class_list":["post-566","page","type-page","status-publish","has-post-thumbnail","hentry"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u623f\u4ea7\u8bc4\u4f30 - WeStar - Real Estate Agency<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/westarrealestate.ca\/zh-hans\/\u623f\u4ea7\u8bc4\u4f30\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u623f\u4ea7\u8bc4\u4f30 - WeStar - Real Estate Agency\" \/>\n<meta property=\"og:url\" content=\"https:\/\/westarrealestate.ca\/zh-hans\/\u623f\u4ea7\u8bc4\u4f30\/\" \/>\n<meta property=\"og:site_name\" content=\"WeStar\" \/>\n<meta property=\"article:modified_time\" content=\"2024-03-27T14:27:05+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/westarrealestate.ca\/wp-content\/uploads\/2024\/02\/banner.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"2000\" \/>\n\t<meta property=\"og:image:height\" content=\"1063\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/westarrealestate.ca\/zh-hans\/%e6%88%bf%e4%ba%a7%e8%af%84%e4%bc%b0\/\",\"url\":\"https:\/\/westarrealestate.ca\/zh-hans\/%e6%88%bf%e4%ba%a7%e8%af%84%e4%bc%b0\/\",\"name\":\"\u623f\u4ea7\u8bc4\u4f30 - WeStar - Real Estate Agency\",\"isPartOf\":{\"@id\":\"https:\/\/westarrealestate.ca\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/westarrealestate.ca\/zh-hans\/%e6%88%bf%e4%ba%a7%e8%af%84%e4%bc%b0\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/westarrealestate.ca\/zh-hans\/%e6%88%bf%e4%ba%a7%e8%af%84%e4%bc%b0\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/westarrealestate.ca\/wp-content\/uploads\/2024\/06\/houses.webp\",\"datePublished\":\"2024-02-01T19:10:07+00:00\",\"dateModified\":\"2024-03-27T14:27:05+00:00\",\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/westarrealestate.ca\/zh-hans\/%e6%88%bf%e4%ba%a7%e8%af%84%e4%bc%b0\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/westarrealestate.ca\/zh-hans\/%e6%88%bf%e4%ba%a7%e8%af%84%e4%bc%b0\/#primaryimage\",\"url\":\"https:\/\/westarrealestate.ca\/wp-content\/uploads\/2024\/06\/houses.webp\",\"contentUrl\":\"https:\/\/westarrealestate.ca\/wp-content\/uploads\/2024\/06\/houses.webp\",\"width\":1500,\"height\":1028},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/westarrealestate.ca\/#website\",\"url\":\"https:\/\/westarrealestate.ca\/\",\"name\":\"WeStar\",\"description\":\"Real Estate Agency\",\"publisher\":{\"@id\":\"https:\/\/westarrealestate.ca\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/westarrealestate.ca\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/westarrealestate.ca\/#organization\",\"name\":\"WeStar\",\"url\":\"https:\/\/westarrealestate.ca\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/westarrealestate.ca\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/westarrealestate.ca\/wp-content\/uploads\/2024\/01\/black-logo.png\",\"contentUrl\":\"https:\/\/westarrealestate.ca\/wp-content\/uploads\/2024\/01\/black-logo.png\",\"width\":1200,\"height\":380,\"caption\":\"WeStar\"},\"image\":{\"@id\":\"https:\/\/westarrealestate.ca\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u623f\u4ea7\u8bc4\u4f30 - WeStar - Real Estate Agency","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/westarrealestate.ca\/zh-hans\/\u623f\u4ea7\u8bc4\u4f30\/","og_locale":"zh_CN","og_type":"article","og_title":"\u623f\u4ea7\u8bc4\u4f30 - WeStar - Real Estate Agency","og_url":"https:\/\/westarrealestate.ca\/zh-hans\/\u623f\u4ea7\u8bc4\u4f30\/","og_site_name":"WeStar","article_modified_time":"2024-03-27T14:27:05+00:00","og_image":[{"width":2000,"height":1063,"url":"https:\/\/westarrealestate.ca\/wp-content\/uploads\/2024\/02\/banner.jpg","type":"image\/jpeg"}],"twitter_card":"summary_large_image","twitter_misc":{"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/westarrealestate.ca\/zh-hans\/%e6%88%bf%e4%ba%a7%e8%af%84%e4%bc%b0\/","url":"https:\/\/westarrealestate.ca\/zh-hans\/%e6%88%bf%e4%ba%a7%e8%af%84%e4%bc%b0\/","name":"\u623f\u4ea7\u8bc4\u4f30 - WeStar - Real Estate Agency","isPartOf":{"@id":"https:\/\/westarrealestate.ca\/#website"},"primaryImageOfPage":{"@id":"https:\/\/westarrealestate.ca\/zh-hans\/%e6%88%bf%e4%ba%a7%e8%af%84%e4%bc%b0\/#primaryimage"},"image":{"@id":"https:\/\/westarrealestate.ca\/zh-hans\/%e6%88%bf%e4%ba%a7%e8%af%84%e4%bc%b0\/#primaryimage"},"thumbnailUrl":"https:\/\/westarrealestate.ca\/wp-content\/uploads\/2024\/06\/houses.webp","datePublished":"2024-02-01T19:10:07+00:00","dateModified":"2024-03-27T14:27:05+00:00","inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/westarrealestate.ca\/zh-hans\/%e6%88%bf%e4%ba%a7%e8%af%84%e4%bc%b0\/"]}]},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/westarrealestate.ca\/zh-hans\/%e6%88%bf%e4%ba%a7%e8%af%84%e4%bc%b0\/#primaryimage","url":"https:\/\/westarrealestate.ca\/wp-content\/uploads\/2024\/06\/houses.webp","contentUrl":"https:\/\/westarrealestate.ca\/wp-content\/uploads\/2024\/06\/houses.webp","width":1500,"height":1028},{"@type":"WebSite","@id":"https:\/\/westarrealestate.ca\/#website","url":"https:\/\/westarrealestate.ca\/","name":"WeStar","description":"Real Estate Agency","publisher":{"@id":"https:\/\/westarrealestate.ca\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/westarrealestate.ca\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"zh-Hans"},{"@type":"Organization","@id":"https:\/\/westarrealestate.ca\/#organization","name":"WeStar","url":"https:\/\/westarrealestate.ca\/","logo":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/westarrealestate.ca\/#\/schema\/logo\/image\/","url":"https:\/\/westarrealestate.ca\/wp-content\/uploads\/2024\/01\/black-logo.png","contentUrl":"https:\/\/westarrealestate.ca\/wp-content\/uploads\/2024\/01\/black-logo.png","width":1200,"height":380,"caption":"WeStar"},"image":{"@id":"https:\/\/westarrealestate.ca\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/westarrealestate.ca\/zh-hans\/wp-json\/wp\/v2\/pages\/566","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/westarrealestate.ca\/zh-hans\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/westarrealestate.ca\/zh-hans\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/westarrealestate.ca\/zh-hans\/wp-json\/wp\/v2\/users\/47"}],"replies":[{"embeddable":true,"href":"https:\/\/westarrealestate.ca\/zh-hans\/wp-json\/wp\/v2\/comments?post=566"}],"version-history":[{"count":2,"href":"https:\/\/westarrealestate.ca\/zh-hans\/wp-json\/wp\/v2\/pages\/566\/revisions"}],"predecessor-version":[{"id":568,"href":"https:\/\/westarrealestate.ca\/zh-hans\/wp-json\/wp\/v2\/pages\/566\/revisions\/568"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/westarrealestate.ca\/zh-hans\/wp-json\/wp\/v2\/media\/903"}],"wp:attachment":[{"href":"https:\/\/westarrealestate.ca\/zh-hans\/wp-json\/wp\/v2\/media?parent=566"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}