{"id":24,"date":"2024-10-04T11:58:22","date_gmt":"2024-10-04T11:58:22","guid":{"rendered":"https:\/\/karellgendron.com\/?page_id=24"},"modified":"2024-10-09T16:48:31","modified_gmt":"2024-10-09T16:48:31","slug":"online-evaluation","status":"publish","type":"page","link":"https:\/\/karellgendron.com\/en\/online-evaluation\/","title":{"rendered":"Online evaluation"},"content":{"rendered":"\n    <div class=\"homeEvalutation text-center\">\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:\/\/karellgendron.com\/en\/wp-json\/wp\/v2\/pages\/24\">\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=\"6953\">\n            <input type=\"hidden\" name=\"source\" value=\"website\">\n            <input type=\"hidden\" name=\"address\" value=\"\">\n            <!-- FIRST STEP -->\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\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                <!-- PROGRESS BAR -->\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-md-0 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-md-0 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-md-0 mb-2\">\n                        <div class=\"single-s s3\">\n                            Step 3 <br>\n                            Free Home Evaluation                        <\/div>\n                    <\/div>\n                <\/div>\n                <!-- NEXT BUTTON -->\n                <div class=\"row mt-5\">\n                    <div class=\"col-lg-12 col-sm-12 text-end\">\n                        <input class=\"next_btn default-btn\" name=\"next\" id=\"step2\" type=\"button\"\n                               value=\"Next\">\n                    <\/div>\n                <\/div>\n            <\/fieldset>\n            <!-- SECOND STEP -->\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\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\">\n                                    Just Curious                                <\/option>\n                                <option value=\"Refinancing\">Refinancing<\/option>\n                            <\/select>\n                        <\/div>\n\n                        <input class=\"pre_btn mb-md-0 mb-2\" name=\"previous\" type=\"button\"\n                               value=\"Previous\">\n                        <input class=\"next_btn mb-md-0 mb-2\" name=\"next\" id=\"submitEmail\" type=\"button\"\n                               value=\"Next\">\n                    <\/div>\n                <\/div>\n                <!-- PROGRESS BAR -->\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-md-0 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-md-0 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-md-0 mb-2\">\n                        <div class=\"single-s s3\">\n                            Step 3 <br>\n                            Free Home Evaluation                        <\/div>\n                    <\/div>\n                <\/div>\n            <\/fieldset>\n            <!-- THIRD STEP -->\n            <fieldset id=\"third\">\n                <div class=\"col-lg-12 col-xs-12\">\n                    <div class=\"content\">\n                        <p>Karell Gendron will be in touch soon to present you a complete analysis of the value of your property.<\/p>\n                    <\/div>\n                <\/div>\n                <!-- PROGRESS BAR -->\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-md-0 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-md-0 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-md-0 mb-2\">\n                        <div class=\"single-s s3\">\n                            Step 3 <br>\n                            Free Home Evaluation                        <\/div>\n                    <\/div>\n                <\/div>\n            <\/fieldset>\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\n                        if($('input[name=\"apartment\"]').val() != \"\")\n                            apt = \"#\" + $('input[name=\"apartment\"]').val() + \" \";\n    \n                        $('input[name=\"address\"]').val( apt + $('input[name=\"location\"]').val());\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                                    \/\/ webhook\n                                    $.post( \"https:\/\/app.expquebec.com\/webhook\/VjtchmdC_T402KsIznDKVA\", $(\"#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('6Le6AqkpAAAAAFM_Yi1y5BamkXMnfbOuh7pkq9Gk', {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":5,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"template-evalution.php","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"class_list":["post-24","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>Online evaluation - Karell Gendron - Real Estate Team - eXp Immobilier<\/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:\/\/karellgendron.com\/en\/online-evaluation\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Online evaluation - Karell Gendron - Real Estate Team - eXp Immobilier\" \/>\n<meta property=\"og:url\" content=\"https:\/\/karellgendron.com\/en\/online-evaluation\/\" \/>\n<meta property=\"og:site_name\" content=\"Karell Gendron\" \/>\n<meta property=\"article:modified_time\" content=\"2024-10-09T16:48:31+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/karellgendron.com\/wp-content\/uploads\/2024\/10\/og.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1894\" \/>\n\t<meta property=\"og:image:height\" content=\"936\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\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:\/\/karellgendron.com\/en\/online-evaluation\/\",\"url\":\"https:\/\/karellgendron.com\/en\/online-evaluation\/\",\"name\":\"Online evaluation - Karell Gendron - Real Estate Team - eXp Immobilier\",\"isPartOf\":{\"@id\":\"https:\/\/karellgendron.com\/#website\"},\"datePublished\":\"2024-10-04T11:58:22+00:00\",\"dateModified\":\"2024-10-09T16:48:31+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/karellgendron.com\/en\/online-evaluation\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/karellgendron.com\/en\/online-evaluation\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/karellgendron.com\/en\/online-evaluation\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/karellgendron.com\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Online evaluation\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/karellgendron.com\/#website\",\"url\":\"https:\/\/karellgendron.com\/\",\"name\":\"Karell Gendron\",\"description\":\"Real Estate Team - eXp Immobilier\",\"publisher\":{\"@id\":\"https:\/\/karellgendron.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/karellgendron.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/karellgendron.com\/#organization\",\"name\":\"Karell Gendron\",\"url\":\"https:\/\/karellgendron.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/karellgendron.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/karellgendron.com\/wp-content\/uploads\/2024\/10\/og.jpg\",\"contentUrl\":\"https:\/\/karellgendron.com\/wp-content\/uploads\/2024\/10\/og.jpg\",\"width\":1894,\"height\":936,\"caption\":\"Karell Gendron\"},\"image\":{\"@id\":\"https:\/\/karellgendron.com\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Online evaluation - Karell Gendron - Real Estate Team - eXp Immobilier","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:\/\/karellgendron.com\/en\/online-evaluation\/","og_locale":"en_US","og_type":"article","og_title":"Online evaluation - Karell Gendron - Real Estate Team - eXp Immobilier","og_url":"https:\/\/karellgendron.com\/en\/online-evaluation\/","og_site_name":"Karell Gendron","article_modified_time":"2024-10-09T16:48:31+00:00","og_image":[{"width":1894,"height":936,"url":"https:\/\/karellgendron.com\/wp-content\/uploads\/2024\/10\/og.jpg","type":"image\/jpeg"}],"twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/karellgendron.com\/en\/online-evaluation\/","url":"https:\/\/karellgendron.com\/en\/online-evaluation\/","name":"Online evaluation - Karell Gendron - Real Estate Team - eXp Immobilier","isPartOf":{"@id":"https:\/\/karellgendron.com\/#website"},"datePublished":"2024-10-04T11:58:22+00:00","dateModified":"2024-10-09T16:48:31+00:00","breadcrumb":{"@id":"https:\/\/karellgendron.com\/en\/online-evaluation\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/karellgendron.com\/en\/online-evaluation\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/karellgendron.com\/en\/online-evaluation\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/karellgendron.com\/en\/"},{"@type":"ListItem","position":2,"name":"Online evaluation"}]},{"@type":"WebSite","@id":"https:\/\/karellgendron.com\/#website","url":"https:\/\/karellgendron.com\/","name":"Karell Gendron","description":"Real Estate Team - eXp Immobilier","publisher":{"@id":"https:\/\/karellgendron.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/karellgendron.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/karellgendron.com\/#organization","name":"Karell Gendron","url":"https:\/\/karellgendron.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/karellgendron.com\/#\/schema\/logo\/image\/","url":"https:\/\/karellgendron.com\/wp-content\/uploads\/2024\/10\/og.jpg","contentUrl":"https:\/\/karellgendron.com\/wp-content\/uploads\/2024\/10\/og.jpg","width":1894,"height":936,"caption":"Karell Gendron"},"image":{"@id":"https:\/\/karellgendron.com\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/karellgendron.com\/en\/wp-json\/wp\/v2\/pages\/24","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/karellgendron.com\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/karellgendron.com\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/karellgendron.com\/en\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/karellgendron.com\/en\/wp-json\/wp\/v2\/comments?post=24"}],"version-history":[{"count":5,"href":"https:\/\/karellgendron.com\/en\/wp-json\/wp\/v2\/pages\/24\/revisions"}],"predecessor-version":[{"id":857,"href":"https:\/\/karellgendron.com\/en\/wp-json\/wp\/v2\/pages\/24\/revisions\/857"}],"wp:attachment":[{"href":"https:\/\/karellgendron.com\/en\/wp-json\/wp\/v2\/media?parent=24"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}