{"id":1390,"date":"2023-11-01T14:58:51","date_gmt":"2023-11-01T19:58:51","guid":{"rendered":"https:\/\/courtier-mtl.com\/home-evaluation\/"},"modified":"2025-03-26T14:26:20","modified_gmt":"2025-03-26T19:26:20","slug":"evaluation-gratuite","status":"publish","type":"page","link":"https:\/\/courtier-mtl.com\/fr\/evaluation-gratuite\/","title":{"rendered":"\u00c9valuation gratuite"},"content":{"rendered":"\n    <div class=\"homeEvalutation text-center\">\n        <h1 class=\"text-center\">Quelle est la valeur de votre propri\u00e9t\u00e9 ?<\/h1>\n        <!--<h5 class=\"text-center\"><\/h5>-->\n        <form id=\"homeEval\" class=\"regform\" method=\"POST\">\n            <input type=\"hidden\" name=\"action\" value=\"mw_home_evaluation\">\n            <input type=\"hidden\" name=\"url\"\n                   value=\"http:\/\/courtier-mtl.com\/fr\/wp-json\/wp\/v2\/pages\/1390\">\n            <!-- Fieldsets -->\n            <fieldset id=\"first\">\n                <!--<h2 class=\"title\"><\/h2>-->\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=\"Entrez votre adresse pour commencer\" autocomplete=\"off\">\n                    <\/div>\n\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=\"Suivant\">\n                    <\/div>\n                <\/div>\n            <\/fieldset>\n            <fieldset id=\"second\">\n                <div class=\"title-wrapper\">\n                    <p>Votre maison a \u00e9t\u00e9 trouv\u00e9e! O\u00f9 aimeriez-vous recevoir votre rapport d'\u00e9valuation de la maison?<\/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\n                    <div class=\"col-lg-6 col-sm-12\">\n                        <div class=\"info\">\n                            <input class=\"text_field\" name=\"name\"\n                                   placeholder=\"Votre Nom\"\n                                   type=\"text\">\n                            <input class=\"text_field\" name=\"email\"\n                                   placeholder=\"Votre Courriel\"\n                                   type=\"text\">\n                            <input class=\"text_field\" name=\"phone\"\n                                   placeholder=\"Votre T\u00e9l\u00e9phone\"\n                                   type=\"text\">\n                            <select class=\"options\" name=\"selling\">\n                                <option value=\"--Selling In--\">--Date de la vente--<\/option>\n                                <option value=\"1-3 Months\">1 \u00e0 3 mois<\/option>\n                                <option value=\"3-6 Months\">3 \u00e0 6 Mois<\/option>\n                                <option value=\"6-12 Months\">6 \u00e0 12 mois<\/option>\n                                <option value=\"Just Curious\">Just Curious<\/option>\n                                <option value=\"Refinancing\">Refinancement<\/option>\n                            <\/select>\n                        <\/div>\n\n                        <input class=\"pre_btn\" name=\"previous\" type=\"button\"\n                               value=\"Pr\u00e9c\u00e9dent\">\n                        <input class=\"next_btn\" name=\"next\" id=\"submitEmail\" type=\"button\"\n                               value=\"Suivant\">\n\n                    <\/div>\n                <\/div>\n\n            <\/fieldset>\n            <fieldset id=\"third\">\n                <!--<h2 class=\"title\"><\/h2>-->\n\n                <div class=\"col-lg-12 col-xs-12\">\n                    <div class=\"content third-step-field\">\n                        <!--<h2 class=\"text-left\"><\/h2>\n                            <p><\/p>\n                            <p><a href=\"tel:\"><\/a><\/p>\n                            <p><a href=\"mailto:\"><\/a><\/p>\n                            <p><\/p>\n                            <p><\/p>-->\n\n                        <p>Giuseppe Cartolano vous contactera dans les plus brefs d\u00e9lais pour vous pr\u00e9senter une analyse compl\u00e8te de la valeur de votre propri\u00e9t\u00e9.<\/p>\n                        <div class=\"btn-wrapper\">\n                            <a class=\"btn-default mt-3\"\n                               href=\"\/fr\/proprietes\/\">Voir les propri\u00e9t\u00e9s<\/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 pb-3 pb-md-0\">\n                    <div class=\"single-s s1 active\">\n                        \u00c9tape 1 <br>\n                        Adresse de la propri\u00e9t\u00e9                    <\/div>\n                <\/div>\n\n                <div class=\"col-lg-4 col-md-4 col-sm-6 col-xs-12 pb-3 pb-md-0\">\n                    <div class=\"single-s s2\">\n                        \u00c9tape 2 <br>\n                        D\u00e9tails de la propri\u00e9t\u00e9                    <\/div>\n                <\/div>\n\n                <div class=\"col-lg-4 col-md-4 col-sm-6 col-xs-12 pb-3 pb-md-0\">\n                    <div class=\"single-s s3\">\n                        \u00c9tape 3 <br>\n                        \u00c9valuation gratuite                    <\/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                        $('#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                            },\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    <\/script>\n    \n","protected":false},"excerpt":{"rendered":"","protected":false},"author":8,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"template-evaluation.php","meta":{"_acf_changed":false,"footnotes":""},"class_list":["post-1390","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/courtier-mtl.com\/fr\/wp-json\/wp\/v2\/pages\/1390","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/courtier-mtl.com\/fr\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/courtier-mtl.com\/fr\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/courtier-mtl.com\/fr\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/courtier-mtl.com\/fr\/wp-json\/wp\/v2\/comments?post=1390"}],"version-history":[{"count":0,"href":"https:\/\/courtier-mtl.com\/fr\/wp-json\/wp\/v2\/pages\/1390\/revisions"}],"wp:attachment":[{"href":"https:\/\/courtier-mtl.com\/fr\/wp-json\/wp\/v2\/media?parent=1390"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}