{"id":1812,"date":"2020-02-05T21:40:52","date_gmt":"2020-02-05T21:40:52","guid":{"rendered":"https:\/\/teamcc.ca\/?page_id=1812"},"modified":"2020-02-05T21:40:52","modified_gmt":"2020-02-05T21:40:52","slug":"evaluation","status":"publish","type":"page","link":"http:\/\/teamcc.ca\/fr\/evaluation\/","title":{"rendered":"Evaluation"},"content":{"rendered":"    <div class=\"homeEvalutation text-center\">\r\n        <h1 class=\"text-center text-white\">Quelle est la valeur de votre maison?<\/h1>\r\n        <h2 class=\"text-center text-white\">RECEVEZ UNE R\u00c9PONSE RAPIDE; C'EST GRATUIT<\/h2>\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:\/\/teamcc.ca\/fr\/wp-json\/wp\/v2\/pages\/1812\">\r\n            <!-- Fieldsets -->\r\n            <fieldset id=\"first\">\r\n                <h2 class=\"title text-white\">Entrer votre adresse ici<\/h2>\r\n                <input type=\"text\" class=\"text_field\" name=\"location\" id=\"location\"\r\n                       placeholder=\"Adresse email\" autocomplete=\"off\">\r\n                <input class=\"next_btn\" name=\"next\" id=\"step2\" type=\"button\"\r\n                       value=\"Suivant\">\r\n            <\/fieldset>\r\n            <fieldset>\r\n                <h2 class=\"title text-white\">\r\n                    Votre maison a \u00e9t\u00e9 trouv\u00e9e! O\u00f9 aimeriez-vous recevoir votre rapport d'\u00e9valuation de la maison?                <\/h2>\r\n                <div class=\"map\" id=\"map\"><\/div>\r\n                <div class=\"info\">\r\n                    <input class=\"text_field\" name=\"name\" placeholder=\"Votre Nom\"\r\n                           type=\"text\">\r\n                    <input class=\"text_field\" name=\"email\" placeholder=\"Votre Courriel\"\r\n                           type=\"text\">\r\n                    <input class=\"text_field\" name=\"phone\" placeholder=\"Votre T\u00e9l\u00e9phone\"\r\n                           type=\"text\">\r\n                    <select class=\"options\" name=\"selling\">\r\n                        <option value=\"--Selling In--\">--Date de la vente--<\/option>\r\n                        <option value=\"1-3 Months\">1 \u00e0 3 mois<\/option>\r\n                        <option value=\"3-6 Months\">3 \u00e0 6 Mois<\/option>\r\n                        <option value=\"6-12 Months\">6 \u00e0 12 mois<\/option>\r\n                        <option value=\"Just Currious\">Par Curiosit\u00e9<\/option>\r\n                        <option value=\"Refinancing\">Refinancement<\/option>\r\n                    <\/select>\r\n                <\/div>\r\n                <input class=\"pre_btn\" name=\"previous\" type=\"button\"\r\n                       value=\"Pr\u00e9c\u00e9dent\">\r\n                <input class=\"next_btn\" name=\"next\" id=\"submitEmail\" type=\"button\"\r\n                       value=\"Suivant\">\r\n            <\/fieldset>\r\n            <fieldset>\r\n                <h2 class=\"title text-white\">Obtenez une opinion de la valeur de votre maison par un expert d'immobilier!<\/h2>\r\n                <div class=\"agent-profile\">\r\n                    <img decoding=\"async\" src=\"http:\/\/teamcc.ca\/wp-content\/uploads\/2018\/07\/diana.jpg\" alt=\"Team Campbell-Cornoni\">\r\n                    <div class=\"info\">\r\n                        <p>Team Campbell-Cornoni<\/p>\r\n                        <p>Real Estate Broker<\/p>\r\n                        <p>5147006966<\/p>\r\n                        <p>dianacampbell@royallepage.ca<\/p>\r\n                    <\/div>\r\n                    <div class=\"text\">\r\n                        <p>La valeur de votre maison est beaucoup plus qu'un simple rapport<\/p>\r\n                        <p>Planifiez une consultation gratuite d'une heure avec moi pour conna\u00eetre vos options et vos possibilit\u00e9s.<\/p>\r\n                    <\/div>\r\n                <\/div>\r\n            <\/fieldset>\r\n            <!-- Progress Bar -->\r\n            <ul id=\"progressbar\">\r\n                <li class=\"active s1\">\r\n                    \u00c9tape 1 <br>\r\n                    Adresse de la propri\u00e9t\u00e9                <\/li>\r\n                <li class=\"s2\">\r\n                    \u00c9tape 2 <br>\r\n                    D\u00e9tails de la propri\u00e9t\u00e9                <\/li>\r\n                <li class=\"s3\">\r\n                    \u00c9tape 3 <br>\r\n                    \u00c9valuation gratuite                <\/li>\r\n            <\/ul>\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                        $(this).parent().next().fadeIn('slow');\r\n                        $(this).parent().css({'display': 'none'});\r\n                        $('.active').next().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                    $(this).parent().prev().fadeIn('slow');\r\n                    $(this).parent().css({'display': 'none'});\r\n\r\n                    $('.active:last').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                });\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":"","meta":{"_acf_changed":false,"footnotes":""},"class_list":["post-1812","page","type-page","status-publish","hentry"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Evaluation - Team CC<\/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:\/\/teamcc.ca\/fr\/evaluation\/\" \/>\n<meta property=\"og:locale\" content=\"fr_FR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Evaluation - Team CC\" \/>\n<meta property=\"og:url\" content=\"http:\/\/teamcc.ca\/fr\/evaluation\/\" \/>\n<meta property=\"og:site_name\" content=\"Team CC\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/EquipeTeamCC\/\" \/>\n<meta property=\"og:image\" content=\"http:\/\/teamcc.ca\/wp-content\/uploads\/2020\/03\/og.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1920\" \/>\n\t<meta property=\"og:image:height\" content=\"1080\" \/>\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\":\"http:\\\/\\\/teamcc.ca\\\/fr\\\/evaluation\\\/\",\"url\":\"http:\\\/\\\/teamcc.ca\\\/fr\\\/evaluation\\\/\",\"name\":\"Evaluation - Team CC\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/teamcc.ca\\\/fr\\\/#website\"},\"datePublished\":\"2020-02-05T21:40:52+00:00\",\"breadcrumb\":{\"@id\":\"http:\\\/\\\/teamcc.ca\\\/fr\\\/evaluation\\\/#breadcrumb\"},\"inLanguage\":\"fr-FR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\\\/\\\/teamcc.ca\\\/fr\\\/evaluation\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\\\/\\\/teamcc.ca\\\/fr\\\/evaluation\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/teamcc.ca\\\/fr\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Evaluation\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/teamcc.ca\\\/fr\\\/#website\",\"url\":\"https:\\\/\\\/teamcc.ca\\\/fr\\\/\",\"name\":\"Team CC\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/teamcc.ca\\\/fr\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/teamcc.ca\\\/fr\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"fr-FR\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/teamcc.ca\\\/fr\\\/#organization\",\"name\":\"Team CC\",\"url\":\"https:\\\/\\\/teamcc.ca\\\/fr\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\\\/\\\/teamcc.ca\\\/fr\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"http:\\\/\\\/teamcc.ca\\\/wp-content\\\/uploads\\\/2021\\\/01\\\/CC-realty_logo_White_clean-e1611005374794.png\",\"contentUrl\":\"http:\\\/\\\/teamcc.ca\\\/wp-content\\\/uploads\\\/2021\\\/01\\\/CC-realty_logo_White_clean-e1611005374794.png\",\"width\":732,\"height\":737,\"caption\":\"Team CC\"},\"image\":{\"@id\":\"https:\\\/\\\/teamcc.ca\\\/fr\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/EquipeTeamCC\\\/\",\"https:\\\/\\\/www.instagram.com\\\/equipe_team_cc\\\/\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Evaluation - Team CC","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:\/\/teamcc.ca\/fr\/evaluation\/","og_locale":"fr_FR","og_type":"article","og_title":"Evaluation - Team CC","og_url":"http:\/\/teamcc.ca\/fr\/evaluation\/","og_site_name":"Team CC","article_publisher":"https:\/\/www.facebook.com\/EquipeTeamCC\/","og_image":[{"width":1920,"height":1080,"url":"http:\/\/teamcc.ca\/wp-content\/uploads\/2020\/03\/og.png","type":"image\/png"}],"twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"http:\/\/teamcc.ca\/fr\/evaluation\/","url":"http:\/\/teamcc.ca\/fr\/evaluation\/","name":"Evaluation - Team CC","isPartOf":{"@id":"https:\/\/teamcc.ca\/fr\/#website"},"datePublished":"2020-02-05T21:40:52+00:00","breadcrumb":{"@id":"http:\/\/teamcc.ca\/fr\/evaluation\/#breadcrumb"},"inLanguage":"fr-FR","potentialAction":[{"@type":"ReadAction","target":["http:\/\/teamcc.ca\/fr\/evaluation\/"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/teamcc.ca\/fr\/evaluation\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/teamcc.ca\/fr\/"},{"@type":"ListItem","position":2,"name":"Evaluation"}]},{"@type":"WebSite","@id":"https:\/\/teamcc.ca\/fr\/#website","url":"https:\/\/teamcc.ca\/fr\/","name":"Team CC","description":"","publisher":{"@id":"https:\/\/teamcc.ca\/fr\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/teamcc.ca\/fr\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"fr-FR"},{"@type":"Organization","@id":"https:\/\/teamcc.ca\/fr\/#organization","name":"Team CC","url":"https:\/\/teamcc.ca\/fr\/","logo":{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/teamcc.ca\/fr\/#\/schema\/logo\/image\/","url":"http:\/\/teamcc.ca\/wp-content\/uploads\/2021\/01\/CC-realty_logo_White_clean-e1611005374794.png","contentUrl":"http:\/\/teamcc.ca\/wp-content\/uploads\/2021\/01\/CC-realty_logo_White_clean-e1611005374794.png","width":732,"height":737,"caption":"Team CC"},"image":{"@id":"https:\/\/teamcc.ca\/fr\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/EquipeTeamCC\/","https:\/\/www.instagram.com\/equipe_team_cc\/"]}]}},"_links":{"self":[{"href":"http:\/\/teamcc.ca\/fr\/wp-json\/wp\/v2\/pages\/1812","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/teamcc.ca\/fr\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/teamcc.ca\/fr\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/teamcc.ca\/fr\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/teamcc.ca\/fr\/wp-json\/wp\/v2\/comments?post=1812"}],"version-history":[{"count":1,"href":"http:\/\/teamcc.ca\/fr\/wp-json\/wp\/v2\/pages\/1812\/revisions"}],"predecessor-version":[{"id":1813,"href":"http:\/\/teamcc.ca\/fr\/wp-json\/wp\/v2\/pages\/1812\/revisions\/1813"}],"wp:attachment":[{"href":"http:\/\/teamcc.ca\/fr\/wp-json\/wp\/v2\/media?parent=1812"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}