{"id":970,"date":"2022-08-02T19:03:42","date_gmt":"2022-08-02T19:03:42","guid":{"rendered":"https:\/\/anthonycristiano.ca\/?page_id=970"},"modified":"2022-08-02T21:31:12","modified_gmt":"2022-08-02T21:31:12","slug":"home-evaluation","status":"publish","type":"page","link":"http:\/\/anthonycristiano.ca\/en\/home-evaluation\/","title":{"rendered":"Home Evaluation"},"content":{"rendered":"\r\n    <div class=\"homeEvalutation text-center\">\r\n        <h1 class=\"text-center text-white\">What's Your Home Worth?<\/h1>\r\n        <h5 class=\"text-center text-white\">FIND OUT FAST AND FREE<\/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:\/\/anthonycristiano.ca\/en\/wp-json\/wp\/v2\/pages\/970\">\r\n            <!-- Fieldsets -->\r\n            <fieldset id=\"first\">\r\n                <h2 class=\"title text-white\">Enter your address below<\/h2>\r\n                <div class=\"row align-items-center\">\r\n                    <div class=\"col-lg-8 col-sm-8\">\r\n                        <input type=\"text\" class=\"text_field\" name=\"location\" id=\"location\"\r\n                               placeholder=\"Address\" autocomplete=\"off\">\r\n\r\n                    <\/div>\r\n                    <div class=\"col-lg-2 col-sm-2\">\r\n                        <input type=\"text\" class=\"text_field\" name=\"apartment\" id=\"apartment\" placeholder=\"Apt#\">\r\n                    <\/div>\r\n\r\n                    <div class=\"col-lg-2 col-sm-12 mt-10\">\r\n                        <input class=\"next_btn\" name=\"next\" id=\"step2\" type=\"button\"\r\n                               value=\"Next\">\r\n                    <\/div>\r\n                <\/div>\r\n            <\/fieldset>\r\n            <fieldset id=\"second\">\r\n                <h2 class=\"title text-white\">\r\n                    Property Found! Where would you like us to send your home evaluation report?                <\/h2>\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\" placeholder=\"Your Name\"\r\n                                   type=\"text\">\r\n                            <input class=\"text_field\" name=\"email\" placeholder=\"Your Email\"\r\n                                   type=\"text\">\r\n                            <input class=\"text_field\" name=\"phone\" placeholder=\"Your Phone\"\r\n                                   type=\"text\">\r\n                            <select class=\"options\" name=\"selling\">\r\n                                <option value=\"--Selling In--\">--Selling In--<\/option>\r\n                                <option value=\"1-3 Months\">1-3 Months<\/option>\r\n                                <option value=\"3-6 Months\">3-6 Months<\/option>\r\n                                <option value=\"6-12 Months\">6-12 Months<\/option>\r\n                                <option value=\"Just Curious\">Just Curious<\/option>\r\n                                <option value=\"Refinancing\">Refinancing<\/option>\r\n                            <\/select>\r\n                        <\/div>\r\n\r\n                        <input class=\"pre_btn\" name=\"previous\" type=\"button\"\r\n                               value=\"Previous\">\r\n                        <input class=\"next_btn\" name=\"next\" id=\"submitEmail\" type=\"button\"\r\n                               value=\"Next\">\r\n\r\n                    <\/div>\r\n                <\/div>\r\n\r\n            <\/fieldset>\r\n            <fieldset id=\"third\">\r\n                <h2 class=\"title text-white\">Get an opinion of value from your local area real estate expert!<\/h2>\r\n\r\n                <div class=\"row align-items-center mt-4\">\r\n                    <div class=\"col-lg-2 col-md-2 col-sm-4 col-xs-12\">\r\n                        <img decoding=\"async\" class=\"eval-broker\" src=\"http:\/\/anthonycristiano.ca\/wp-content\/uploads\/2022\/08\/anthony_pic_01.jpg\" alt=\"Anthony Cristiano\">\r\n                    <\/div>\r\n\r\n                    <div class=\"col-lg-10 col-md-10 col-sm-8 col-xs-12 text-left\">\r\n                        <div class=\"content\">\r\n                            <h2 class=\"text-left text-white\">Anthony Cristiano<\/h2>\r\n                            <p>Residential Real Estate Broker<\/p>\r\n                            <p><a href=\"tel:514-773-0326\">514-773-0326<\/a><\/p>\r\n                            <p><a href=\"mailto:anthony.cristiano@hotmail.com\">anthony.cristiano@hotmail.com<\/a><\/p>\r\n\r\n                            <p>Home evaluation is much more than a report<\/p>\r\n                            <p>Schedule a complimentary one-hour consultation with me to learn about your options and opportunities.<\/p>\r\n                        <\/div>\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                        Step 1 <br>\r\n                        Property Address                    <\/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                        Step 2 <br>\r\n                        Property Details                    <\/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                        Step 3 <br>\r\n                        Free Home Evaluation                    <\/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":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"template-eval.php","meta":{"_acf_changed":false,"footnotes":""},"class_list":["post-970","page","type-page","status-publish","hentry"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Anthony Cristiano | Courtier Immobilier - Real Estate Broker - RE\/MAX Alliance Inc. <\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/anthonycristiano.ca\/en\/home-evaluation\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Anthony Cristiano\" \/>\n<meta property=\"og:url\" content=\"http:\/\/anthonycristiano.ca\/en\/home-evaluation\/\" \/>\n<meta property=\"og:site_name\" content=\"Anthony Cristiano\" \/>\n<meta property=\"article:modified_time\" content=\"2022-08-02T21:31:12+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"http:\/\/anthonycristiano.ca\/en\/home-evaluation\/\",\"url\":\"http:\/\/anthonycristiano.ca\/en\/home-evaluation\/\",\"name\":\"Anthony Cristiano\",\"isPartOf\":{\"@id\":\"https:\/\/anthonycristiano.ca\/en\/#website\"},\"datePublished\":\"2022-08-02T19:03:42+00:00\",\"dateModified\":\"2022-08-02T21:31:12+00:00\",\"breadcrumb\":{\"@id\":\"http:\/\/anthonycristiano.ca\/en\/home-evaluation\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/anthonycristiano.ca\/en\/home-evaluation\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/anthonycristiano.ca\/en\/home-evaluation\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"http:\/\/anthonycristiano.ca\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Home Evaluation\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/anthonycristiano.ca\/en\/#website\",\"url\":\"https:\/\/anthonycristiano.ca\/en\/\",\"name\":\"Anthony Cristiano\",\"description\":\"Courtier Immobilier - Real Estate Broker - RE\/MAX Alliance Inc. \",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/anthonycristiano.ca\/en\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Anthony Cristiano | Courtier Immobilier - Real Estate Broker - RE\/MAX Alliance Inc. ","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":"http:\/\/anthonycristiano.ca\/en\/home-evaluation\/","og_locale":"en_US","og_type":"article","og_title":"Anthony Cristiano","og_url":"http:\/\/anthonycristiano.ca\/en\/home-evaluation\/","og_site_name":"Anthony Cristiano","article_modified_time":"2022-08-02T21:31:12+00:00","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"http:\/\/anthonycristiano.ca\/en\/home-evaluation\/","url":"http:\/\/anthonycristiano.ca\/en\/home-evaluation\/","name":"Anthony Cristiano","isPartOf":{"@id":"https:\/\/anthonycristiano.ca\/en\/#website"},"datePublished":"2022-08-02T19:03:42+00:00","dateModified":"2022-08-02T21:31:12+00:00","breadcrumb":{"@id":"http:\/\/anthonycristiano.ca\/en\/home-evaluation\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["http:\/\/anthonycristiano.ca\/en\/home-evaluation\/"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/anthonycristiano.ca\/en\/home-evaluation\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"http:\/\/anthonycristiano.ca\/en\/"},{"@type":"ListItem","position":2,"name":"Home Evaluation"}]},{"@type":"WebSite","@id":"https:\/\/anthonycristiano.ca\/en\/#website","url":"https:\/\/anthonycristiano.ca\/en\/","name":"Anthony Cristiano","description":"Courtier Immobilier - Real Estate Broker - RE\/MAX Alliance Inc. ","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/anthonycristiano.ca\/en\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"http:\/\/anthonycristiano.ca\/en\/wp-json\/wp\/v2\/pages\/970","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/anthonycristiano.ca\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/anthonycristiano.ca\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/anthonycristiano.ca\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/anthonycristiano.ca\/en\/wp-json\/wp\/v2\/comments?post=970"}],"version-history":[{"count":2,"href":"http:\/\/anthonycristiano.ca\/en\/wp-json\/wp\/v2\/pages\/970\/revisions"}],"predecessor-version":[{"id":976,"href":"http:\/\/anthonycristiano.ca\/en\/wp-json\/wp\/v2\/pages\/970\/revisions\/976"}],"wp:attachment":[{"href":"http:\/\/anthonycristiano.ca\/en\/wp-json\/wp\/v2\/media?parent=970"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}