{"id":374,"date":"2023-09-25T08:57:41","date_gmt":"2023-09-25T08:57:41","guid":{"rendered":"https:\/\/cameliafathi.com\/?page_id=374"},"modified":"2023-11-13T14:55:44","modified_gmt":"2023-11-13T14:55:44","slug":"home-evaluation","status":"publish","type":"page","link":"https:\/\/cameliafathi.com\/en\/home-evaluation\/","title":{"rendered":"Home Evaluation"},"content":{"rendered":"\n    <div class=\"homeEvalutation text-center\">\n        <!--<h5 class=\"text-center\"><\/h5>-->\n        <form id=\"homeEval\" class=\"regform\" method=\"POST\">\n            <input type=\"hidden\" id=\"g-recaptcha-response\" name=\"g-recaptcha-response\">\n            <input type=\"hidden\" name=\"action\" value=\"validate_captcha\">\n            <input type=\"hidden\" name=\"action\" value=\"mw_home_evaluation\">\n            <input type=\"hidden\" name=\"url\" value=\"http:\/\/cameliafathi.com\/en\/wp-json\/wp\/v2\/pages\/374\">\n            <input type=\"hidden\" name=\"type\" value=\"2\">\n            <input type=\"hidden\" name=\"tags\" value=\"home evaluation\">\n            <input type=\"hidden\" name=\"funnel_id\" value=\"2377\">\n            <input type=\"hidden\" name=\"source\" value=\"website\">\n            <input type=\"hidden\" name=\"address\" value=\"\">\n            <!-- Fieldsets -->\n            <fieldset id=\"first\">\n                <div class=\"row align-items-center\">\n                    <div class=\"col-lg-10 col-sm-10 col-xs-12\">\n                        <input type=\"text\" class=\"text_field\" name=\"location\" id=\"location\"\n                               placeholder=\"Enter your address to begin\" autocomplete=\"off\">\n                    <\/div>\n                    <div class=\"col-lg-2 col-sm-2 col-xs-12\">\n                        <input type=\"text\" class=\"text_field\" name=\"apartment\" id=\"apartment\" placeholder=\"Apt#\">\n                    <\/div>\n                <\/div>\n                <div class=\"row\">\n                    <div class=\"col-lg-12 col-sm-12\">\n                        <input class=\"next_btn\" name=\"next\" id=\"step2\" type=\"button\"\n                               value=\"Next\">\n                    <\/div>\n                <\/div>\n            <\/fieldset>\n\n            <fieldset id=\"second\">\n                <div class=\"title-wrapper\">\n                    <p>Property Found! Where would you like us to send your home evaluation report?<\/p>\n                <\/div>\n                <div class=\"row align-items-center\">\n                    <div class=\"col-lg-6 col-sm-12\">\n                        <div class=\"map\" id=\"map\"><\/div>\n                    <\/div>\n                    <div class=\"col-lg-6 col-sm-12\">\n                        <div class=\"info\">\n                            <input class=\"text_field\" name=\"name\"\n                                   placeholder=\"Your Name\"\n                                   type=\"text\">\n                            <input class=\"text_field\" name=\"email\"\n                                   placeholder=\"Your Email\"\n                                   type=\"text\">\n                            <input class=\"text_field\" name=\"phone\"\n                                   placeholder=\"Your Phone\"\n                                   type=\"text\">\n                            <select class=\"options\" name=\"selling\">\n                                <option value=\"--Selling In--\">--Selling In--<\/option>\n                                <option value=\"1-3 Months\">1-3 Months<\/option>\n                                <option value=\"3-6 Months\">3-6 Months<\/option>\n                                <option value=\"6-12 Months\">6-12 Months<\/option>\n                                <option value=\"Just Curious\">Just Curious<\/option>\n                                <option value=\"Refinancing\">Refinancing<\/option>\n                            <\/select>\n                        <\/div>\n                        <div class=\"row\">\n                        <div class=\"col-lg-6 col-12 pb-lg-0 pb-3\">\n                            <input class=\"pre_btn\" name=\"previous\" type=\"button\"\n                                value=\"Previous\">\n                        <\/div>\n                        <div class=\"col-lg-6 col-12\">\n                            <input class=\"next_btn\" name=\"next\" id=\"submitEmail\" type=\"button\"\n                                value=\"Next\">\n                        <\/div>\n                    <\/div>\n                    <\/div>\n                <\/div>\n            <\/fieldset>\n\n            <fieldset id=\"third\">\n                <div class=\"col-lg-12 col-xs-12\">\n                    <div class=\"content\">\n                        <p>Camelia will be in touch soon to present you a complete analysis of the value of your property.<\/p>\n                        <div class=\"btn-wrapper\">\n                            <a class=\"black btn-default\"\n                               href=\"\/listings\/\">View Listings<\/a>\n                        <\/div>\n                    <\/div>\n                <\/div>\n            <\/fieldset>\n            <!-- Progress Bar -->\n\n            <div class=\"row justify-content-center mt-4\">\n                <div class=\"col-lg-4 col-md-4 col-sm-6 col-xs-12 mb-2\">\n                    <div class=\"single-s s1 active\">\n                        Step 1 <br>\n                        Property Address                    <\/div>\n                <\/div>\n\n                <div class=\"col-lg-4 col-md-4 col-sm-6 col-xs-12 mb-2\">\n                    <div class=\"single-s s2\">\n                        Step 2 <br>\n                        Property Details                    <\/div>\n                <\/div>\n\n                <div class=\"col-lg-4 col-md-4 col-sm-6 col-xs-12 mb-2\">\n                    <div class=\"single-s s3\">\n                        Step 3 <br>\n                        Free Home Evaluation                    <\/div>\n                <\/div>\n            <\/div>\n        <\/form>\n    <\/div>\n    <script>\n        (function ($) {\n            $(document).ready(function () {\n                $(\"#step2\").click(function () {\n                    if ($('input[name=\"location\"]').val() == \"\") {\n                        alert(\"Location field is necessary!\");\n                        return false;\n                    } else {\n                        let apt = \"\";\n                        if($('input[name=\"apartment\"]').val() != \"\")\n                            apt = \"#\" + $('input[name=\"apartment\"]').val() + \" \";\n                        $('input[name=\"address\"]').val( apt + $('input[name=\"location\"]').val());\n\n                        $('#second').fadeIn('slow');\n                        $('#first').css({'display': 'none'});\n                        $('.s2').addClass('active');\n\n                        let center = map.getCenter();\n                        google.maps.event.trigger(map, 'resize');\n                        map.setCenter(center);\n\n                        return true;\n                    }\n                });\n\n                $(\".pre_btn\").click(function () {\n                    $('#first').fadeIn('slow');\n                    $('#second').css({'display': 'none'});\n\n                    $('.s2').removeClass('active');\n                });\n\n                $(\"#submitEmail\").click(function () {\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,}))$\/;\n                    if ($('input[name=\"name\"]').val() == \"\") {\n                        alert(\"Name field is invalid!\");\n                        return false;\n                    } else if (!re.test($('input[name=\"email\"]').val())) {\n                        alert(\"Email field is invalid!\");\n                        return false;\n                    } else if ($('input[name=\"phone\"]').val() == \"\") {\n                        alert(\"Phone field is invalid!\");\n                        return false;\n                    } else {\n                        let el = $(this);\n                        $.ajax({\n                            type: \"POST\",\n                            url: realEstateJs.ajaxUrl,\n                            data: $(\"#homeEval\").serialize(),\n                            success: function (data) {\n                                console.log(data);\n                                if (data.success) {\n                                    $(el).parent().next().fadeIn('slow');\n                                    $(el).parent().css({'display': 'none'});\n                                    $('.active').next().addClass('active');\n\n                                    $.post( \"https:\/\/app.utilmo.com\/webhook\/qP4RtVc13uXK4.e_1mMYYw\", $(\"#homeEval\").serialize() );\n                                }\n                            },\n                            error: function (e) {\n                                console.log(e.responseText);\n                            }\n                        });\n\n                        $('.s3').addClass('active');\n                        $('#third').fadeIn('slow');\n                        $('#second').css({'display': 'none'});\n                    }\n                });\n            });\n\n            \/\/Autocomplete variables\n            let input = document.getElementById('location'),\n                step2 = document.getElementById('step2'),\n                place;\n\n            let observerHack = new MutationObserver(function () {\n                observerHack.disconnect();\n                $(\"#location\").attr(\"autocomplete\", \"new-password\").attr(\"disabled\", false);\n            });\n\n            observerHack.observe(input, {\n                attributes: true,\n                attributeFilter: ['autocomplete']\n            });\n\n            let autocomplete = new google.maps.places.Autocomplete(input);\n\n            \/\/Google Map variables\n            let map, marker;\n\n            \/\/Add listener to detect autocomplete selection\n            google.maps.event.addListener(autocomplete, 'place_changed', function () {\n                place = autocomplete.getPlace();\n            });\n\n            \/\/Add listener to search\n            step2.addEventListener(\"click\", function () {\n                let newlatlong = new google.maps.LatLng(place.geometry.location.lat(), place.geometry.location.lng());\n                map.setCenter(newlatlong);\n                marker.setPosition(newlatlong);\n                map.setZoom(18);\n                map.setMapTypeId(google.maps.MapTypeId.SATELLITE);\n            });\n\n            \/\/Reset the inpout box on click\n            input.addEventListener('click', function () {\n                \/\/input.value = \"\";\n            });\n\n            function initialize() {\n                let myLatlng = new google.maps.LatLng(45.5549753, -73.9491394);\n                let mapOptions = {\n                    zoom: 1,\n                    center: myLatlng\n                };\n\n                map = new google.maps.Map(document.getElementById('map'), mapOptions);\n\n                marker = new google.maps.Marker({\n                    position: myLatlng,\n                    map: map,\n                    title: 'Main map'\n                });\n            }\n\n            google.maps.event.addDomListener(window, 'load', initialize);\n        }(jQuery));\n\n        var onloadCallback = function () {\n            grecaptcha.ready(function () {\n                grecaptcha.execute('6LdAYEInAAAAAMunYGBOYYdVkd78LBq60UM2_z0j', {action: 'validate_captcha'})\n                    .then(function (token) {\n                        document.getElementById('g-recaptcha-response').value = token;\n                    });\n            });\n        };\n    <\/script>\n    \n","protected":false},"excerpt":{"rendered":"","protected":false},"author":10,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"template-evalution.php","meta":{"_acf_changed":false,"footnotes":""},"class_list":["post-374","page","type-page","status-publish","hentry"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Home Evaluation - Camelia Fathi<\/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:\/\/cameliafathi.com\/en\/home-evaluation\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Home Evaluation - Camelia Fathi\" \/>\n<meta property=\"og:url\" content=\"https:\/\/cameliafathi.com\/en\/home-evaluation\/\" \/>\n<meta property=\"og:site_name\" content=\"Camelia Fathi\" \/>\n<meta property=\"article:modified_time\" content=\"2023-11-13T14:55:44+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cameliafathi.com\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-21-123448.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1903\" \/>\n\t<meta property=\"og:image:height\" content=\"770\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\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\":\"https:\/\/cameliafathi.com\/en\/home-evaluation\/\",\"url\":\"https:\/\/cameliafathi.com\/en\/home-evaluation\/\",\"name\":\"Home Evaluation - Camelia Fathi\",\"isPartOf\":{\"@id\":\"https:\/\/cameliafathi.com\/en\/#website\"},\"datePublished\":\"2023-09-25T08:57:41+00:00\",\"dateModified\":\"2023-11-13T14:55:44+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/cameliafathi.com\/en\/home-evaluation\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/cameliafathi.com\/en\/home-evaluation\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/cameliafathi.com\/en\/home-evaluation\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"https:\/\/cameliafathi.com\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Home Evaluation\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/cameliafathi.com\/en\/#website\",\"url\":\"https:\/\/cameliafathi.com\/en\/\",\"name\":\"Camelia Fathi\",\"description\":\"Greater Montreal Toronto homes and condos for sale\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/cameliafathi.com\/en\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Home Evaluation - Camelia Fathi","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:\/\/cameliafathi.com\/en\/home-evaluation\/","og_locale":"en_US","og_type":"article","og_title":"Home Evaluation - Camelia Fathi","og_url":"https:\/\/cameliafathi.com\/en\/home-evaluation\/","og_site_name":"Camelia Fathi","article_modified_time":"2023-11-13T14:55:44+00:00","og_image":[{"width":1903,"height":770,"url":"https:\/\/cameliafathi.com\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-21-123448.png","type":"image\/png"}],"twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/cameliafathi.com\/en\/home-evaluation\/","url":"https:\/\/cameliafathi.com\/en\/home-evaluation\/","name":"Home Evaluation - Camelia Fathi","isPartOf":{"@id":"https:\/\/cameliafathi.com\/en\/#website"},"datePublished":"2023-09-25T08:57:41+00:00","dateModified":"2023-11-13T14:55:44+00:00","breadcrumb":{"@id":"https:\/\/cameliafathi.com\/en\/home-evaluation\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/cameliafathi.com\/en\/home-evaluation\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/cameliafathi.com\/en\/home-evaluation\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Accueil","item":"https:\/\/cameliafathi.com\/en\/"},{"@type":"ListItem","position":2,"name":"Home Evaluation"}]},{"@type":"WebSite","@id":"https:\/\/cameliafathi.com\/en\/#website","url":"https:\/\/cameliafathi.com\/en\/","name":"Camelia Fathi","description":"Greater Montreal Toronto homes and condos for sale","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/cameliafathi.com\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/cameliafathi.com\/en\/wp-json\/wp\/v2\/pages\/374","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cameliafathi.com\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/cameliafathi.com\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/cameliafathi.com\/en\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/cameliafathi.com\/en\/wp-json\/wp\/v2\/comments?post=374"}],"version-history":[{"count":6,"href":"https:\/\/cameliafathi.com\/en\/wp-json\/wp\/v2\/pages\/374\/revisions"}],"predecessor-version":[{"id":849,"href":"https:\/\/cameliafathi.com\/en\/wp-json\/wp\/v2\/pages\/374\/revisions\/849"}],"wp:attachment":[{"href":"https:\/\/cameliafathi.com\/en\/wp-json\/wp\/v2\/media?parent=374"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}