{"id":384,"date":"2024-04-26T06:11:08","date_gmt":"2024-04-26T06:11:08","guid":{"rendered":"https:\/\/immeublesbardier.ca\/evaluation-gratuite-de-votre-maison\/"},"modified":"2024-05-27T19:10:36","modified_gmt":"2024-05-27T19:10:36","slug":"free-home-evaluation","status":"publish","type":"page","link":"https:\/\/immeublesbardier.ca\/en\/free-home-evaluation\/","title":{"rendered":"Free Home Evaluation"},"content":{"rendered":"\r\n    <div class=\"homeEvalutation text-center\">\r\n        <div class=\"section-title black\">\r\n            <h6 class=\"text-center\">How much is your home worth?<\/h6>\r\n            <h2 class=\"text-center\">Discover it quickly and for free<\/h2>\r\n        <\/div>\r\n\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:\/\/immeublesbardier.ca\/en\/wp-json\/wp\/v2\/pages\/384\">\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-9 col-md-9 col-sm-8 col-xs-12 mb-2 mb-md-0\">\r\n                        <input type=\"text\" class=\"text_field\" name=\"location\" id=\"location\"\r\n                               placeholder=\"Enter your address to begin\" autocomplete=\"off\">\r\n                    <\/div>\r\n\r\n                    <div class=\"col-lg-3 col-md-3 col-sm-4 col-xs-12\">\r\n                        <input type=\"text\" class=\"text_field\" name=\"apartment\" id=\"apartment\" placeholder=\"Apt#\">\r\n                    <\/div>\r\n\r\n                    <div class=\"col-12 mt-3\">\r\n                        <button type=\"button\" class=\"next_btn btn-default scolor text-white w-100\" name=\"next\" id=\"step2\">\r\n                            Next                        <\/button>\r\n                    <\/div>\r\n                <\/div>\r\n            <\/fieldset>\r\n            <fieldset id=\"second\">\r\n                <div class=\"title-wrapper\">\r\n                    <p>Property Found! Where would you like us to send your home evaluation report?<\/p>\r\n                <\/div>\r\n                <div class=\"row align-items-center\">\r\n                    <div class=\"col-lg-6 col-md-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-md-6 col-sm-12\">\r\n                        <div class=\"info niceForm\">\r\n                            <input class=\"text_field\" name=\"name\"\r\n                                   placeholder=\"Your Name\"\r\n                                   type=\"text\">\r\n                            <input class=\"text_field\" name=\"email\"\r\n                                   placeholder=\"Your Email\"\r\n                                   type=\"text\">\r\n                            <input class=\"text_field\" name=\"phone\"\r\n                                   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                        <button type=\"button\" class=\"next_btn btn-default scolor text-white\" name=\"previous\">\r\n                            Previous                        <\/button>\r\n\r\n                        <button type=\"button\" class=\"next_btn btn-default scolor text-white\" id=\"submitEmail\" name=\"next\">\r\n                            Next                        <\/button>\r\n\r\n                    <\/div>\r\n                <\/div>\r\n\r\n            <\/fieldset>\r\n            <fieldset id=\"third\">\r\n\r\n                <div class=\"col-lg-12 col-xs-12\">\r\n                    <div class=\"content\">\r\n                        <p>One of our team members will be in touch soon to present you a complete analysis of the value of your property.<\/p>\r\n                    <\/div>\r\n                <\/div>\r\n            <\/fieldset>\r\n            <!-- Progress Bar -->\r\n            <div class=\"row justify-content-center mt-4\">\r\n                <div class=\"col-lg-4 col-md-4 col-sm-4 col-xs-12 mb-2 mb-md-0\">\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-4 col-xs-12 mb-2 mb-md-0\">\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-4 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":4,"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-384","page","type-page","status-publish","hentry"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Free Home Evaluation - Immeubles Bardier<\/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:\/\/immeublesbardier.ca\/en\/free-home-evaluation\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Free Home Evaluation - Immeubles Bardier\" \/>\n<meta property=\"og:url\" content=\"https:\/\/immeublesbardier.ca\/en\/free-home-evaluation\/\" \/>\n<meta property=\"og:site_name\" content=\"Immeubles Bardier\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-27T19:10:36+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/immeublesbardier.ca\/wp-content\/uploads\/2024\/05\/og.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1901\" \/>\n\t<meta property=\"og:image:height\" content=\"942\" \/>\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=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/immeublesbardier.ca\/en\/free-home-evaluation\/\",\"url\":\"https:\/\/immeublesbardier.ca\/en\/free-home-evaluation\/\",\"name\":\"Free Home Evaluation - Immeubles Bardier\",\"isPartOf\":{\"@id\":\"https:\/\/immeublesbardier.ca\/#website\"},\"datePublished\":\"2024-04-26T06:11:08+00:00\",\"dateModified\":\"2024-05-27T19:10:36+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/immeublesbardier.ca\/en\/free-home-evaluation\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/immeublesbardier.ca\/en\/free-home-evaluation\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/immeublesbardier.ca\/en\/free-home-evaluation\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/immeublesbardier.ca\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Free Home Evaluation\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/immeublesbardier.ca\/#website\",\"url\":\"https:\/\/immeublesbardier.ca\/\",\"name\":\"Immeubles Bardier\",\"description\":\"Agence immobili\u00e8re\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/immeublesbardier.ca\/?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":"Free Home Evaluation - Immeubles Bardier","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:\/\/immeublesbardier.ca\/en\/free-home-evaluation\/","og_locale":"en_US","og_type":"article","og_title":"Free Home Evaluation - Immeubles Bardier","og_url":"https:\/\/immeublesbardier.ca\/en\/free-home-evaluation\/","og_site_name":"Immeubles Bardier","article_modified_time":"2024-05-27T19:10:36+00:00","og_image":[{"width":1901,"height":942,"url":"https:\/\/immeublesbardier.ca\/wp-content\/uploads\/2024\/05\/og.jpg","type":"image\/jpeg"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/immeublesbardier.ca\/en\/free-home-evaluation\/","url":"https:\/\/immeublesbardier.ca\/en\/free-home-evaluation\/","name":"Free Home Evaluation - Immeubles Bardier","isPartOf":{"@id":"https:\/\/immeublesbardier.ca\/#website"},"datePublished":"2024-04-26T06:11:08+00:00","dateModified":"2024-05-27T19:10:36+00:00","breadcrumb":{"@id":"https:\/\/immeublesbardier.ca\/en\/free-home-evaluation\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/immeublesbardier.ca\/en\/free-home-evaluation\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/immeublesbardier.ca\/en\/free-home-evaluation\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/immeublesbardier.ca\/en\/"},{"@type":"ListItem","position":2,"name":"Free Home Evaluation"}]},{"@type":"WebSite","@id":"https:\/\/immeublesbardier.ca\/#website","url":"https:\/\/immeublesbardier.ca\/","name":"Immeubles Bardier","description":"Agence immobili\u00e8re","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/immeublesbardier.ca\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/immeublesbardier.ca\/en\/wp-json\/wp\/v2\/pages\/384","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/immeublesbardier.ca\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/immeublesbardier.ca\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/immeublesbardier.ca\/en\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/immeublesbardier.ca\/en\/wp-json\/wp\/v2\/comments?post=384"}],"version-history":[{"count":1,"href":"https:\/\/immeublesbardier.ca\/en\/wp-json\/wp\/v2\/pages\/384\/revisions"}],"predecessor-version":[{"id":385,"href":"https:\/\/immeublesbardier.ca\/en\/wp-json\/wp\/v2\/pages\/384\/revisions\/385"}],"wp:attachment":[{"href":"https:\/\/immeublesbardier.ca\/en\/wp-json\/wp\/v2\/media?parent=384"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}