Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!--[if lt IE 7]>
- <p>
- You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">activate Google Chrome Frame</a> to improve your experience.
- </p> <![endif]-->
- <div id="DIV_24">
- <!-- Header -->
- <header id="HEADER_25">
- <div id="DIV_26">
- </div>
- <div id="DIV_27">
- </div>
- </header>
- <!-- Middle image and address input -->
- <div id="DIV_28">
- <div id="DIV_29">
- <h1 id="H1_30">
- What's Your Home Worth?
- </h1>
- <h2 id="H2_31">
- <span id="SPAN_32"></span> <span id="SPAN_33">Home Prices are Up 19%</span><span id="SPAN_34"></span>
- </h2>
- <form id="FORM_35" action="index.asp">
- <input type="hidden" name="PageAction" value="MapPage" id="INPUT_36" />
- <input type="hidden" name="lat" id="INPUT_37" value="44.1643713" />
- <input type="hidden" name="lng" id="INPUT_38" value="-80.03692619999998" />
- <input type="hidden" name="street_number" id="INPUT_39" />
- <input type="hidden" name="route" id="INPUT_40" value="Airport Rd" />
- <input type="hidden" name="locality" id="INPUT_41" value="Mansfield" />
- <input type="hidden" name="administrative_area_level_1" id="INPUT_42" value="ON" />
- <input type="hidden" name="country" id="INPUT_43" value="Canada" />
- <input type="hidden" name="postal_code" id="INPUT_44" value="L0N 1M0" />
- <input id="INPUT_45" type="text" placeholder="Type your address..." />
- <button type="submit" id="BUTTON_46">
- Submit
- </button>
- </form>
- </div>
- </div>
- <!-- footer -->
- <footer id="FOOTER_47">
- <p id="P_48">
- We respect your privacy, we will never sell or share your information with anyone.<br id="BR_49" /><span id="SPAN_50"></span><br id="BR_51" /> <a href="index.asp?PageAction=PrivacyPolicy" id="A_52">Privacy Policy</a> | <a href="index.asp?PageAction=TermsOfService" id="A_53">Terms of Service</a>
- </p>
- <p id="P_54">
- <a href="http://www.agentlocator.ca/" id="A_55"><img src="http://www.agentlocator.ca/agentlocator.png" alt="agentlocator" id="IMG_56" /></a>
- </p>
- </footer>
- </div>
- <script id="SCRIPT_58">window.jQuery || document.write('
- </script><\/script>')
- <script type="text/javascript" id="SCRIPT_61">function initialize() {
- var input = /** @type {HTMLInputElement} */(
- document.getElementById('search-term'));
- var autoCompleteOptions = {componentRestrictions: {country: "ca"}};
- autocomplete = new google.maps.places.Autocomplete(input,autoCompleteOptions);
- google.maps.event.addListener(autocomplete, 'place_changed', function() {
- var place = autocomplete.getPlace();
- var address = '';
- if (place.address_components) {
- if (place.address_components) {
- var component_form = {
- 'street_number': 'short_name',
- 'route': 'long_name',
- 'locality': 'long_name',
- 'administrative_area_level_1': 'short_name',
- 'country': 'long_name',
- 'postal_code': 'short_name'
- };
- for (var component in component_form) {
- document.getElementById(component).value = "";
- document.getElementById(component).disabled = false;
- }
- for (var j = 0; j < place.address_components.length; j++) {
- var att = place.address_components[j].types[0];
- if (component_form[att]) {
- var val = place.address_components[j][component_form[att]];
- document.getElementById(att).value = val;
- }
- }
- }
- address = [
- (place.address_components[0] && place.address_components[0].short_name || ''),
- (place.address_components[1] && place.address_components[1].short_name || ''),
- (place.address_components[2] && place.address_components[2].short_name || ''),
- (place.address_components[3] && place.address_components[3].short_name || ''),
- (place.address_components[4] && place.address_components[4].short_name || '')
- ].join(' ');
- }
- var geocoder = new google.maps.Geocoder();
- geocoder.geocode( { 'address': address}, function(results, status) {
- if (status == google.maps.GeocoderStatus.OK) {
- var lat = results[0].geometry.location.lat();
- var lng = results[0].geometry.location.lng();
- $('#glat').val(lat);
- $('#glng').val(lng);
- $('#header-addre-form').submit();
- } else {
- //do something here
- }
- });
- });
- }
- google.maps.event.addDomListener(window, 'load', initialize);
- $(document).ready(function(){
- $('#addre-submit').on("click",function() {
- var firstResult = $(".pac-container .pac-item:first").text();
- var geocoder = new google.maps.Geocoder();
- geocoder.geocode({"address":firstResult }, function(results, status) {
- if (status == google.maps.GeocoderStatus.OK) {
- var lat = results[0].geometry.location.lat();
- var lng = results[0].geometry.location.lng();
- $('#glat').val(lat);
- $('#glng').val(lng);
- $('#header-addre-form').submit();
- }
- });
- return false;
- });
- $("#search-term").focusin(function () {
- $(document).keypress(function (e) {
- if (e.which == 13) {
- var firstResult = $(".pac-container .pac-item:first").text();
- var geocoder = new google.maps.Geocoder();
- geocoder.geocode({"address":firstResult }, function(results, status) {
- if (status == google.maps.GeocoderStatus.OK) {
- var lat = results[0].geometry.location.lat();
- var lng = results[0].geometry.location.lng();
- $('#glat').val(lat);
- $('#glng').val(lng);
- var component_form = {
- 'street_number': 'long_name',
- 'route': 'long_name',
- 'locality': 'long_name',
- 'administrative_area_level_1': 'short_name',
- 'country': 'long_name',
- 'postal_code': 'short_name'
- };
- for (var component in component_form) {
- document.getElementById(component).value = "";
- document.getElementById(component).disabled = false;
- }
- for (var j = 0; j < results[0].address_components.length; j++) {
- var att = results[0].address_components[j].types[0];
- if (component_form[att]) {
- var val = results[0].address_components[j][component_form[att]];
- document.getElementById(att).value = val;
- }
- }
- $('#header-addre-form').submit();
- }
- });
- return false;
- } else {
- $(".pac-container").css("visibility","visible");
- }
- });
- });
- });
- </script>
- <script id="SCRIPT_63">try{for(var lastpass_iter=0; lastpass_iter < document.forms.length; lastpass_iter++){ var lastpass_f = document.forms[lastpass_iter]; if(typeof(lastpass_f.lpsubmitorig2)=="undefined"){ lastpass_f.lpsubmitorig2 = lastpass_f.submit; if (typeof(lastpass_f.lpsubmitorig2)=='object'){ continue;}lastpass_f.submit = function(){ var form=this; var customEvent = document.createEvent("Event"); customEvent.initEvent("lpCustomEvent", true, true); var d = document.getElementById("hiddenlpsubmitdiv"); if (d) {for(var i = 0; i < document.forms.length; i++){ if(document.forms[i]==form){ if (typeof(d.innerText) != 'undefined') { d.innerText=i.toString(); } else { d.textContent=i.toString(); } } } d.dispatchEvent(customEvent); }form.lpsubmitorig2(); } } }}catch(e){}
- </script>
- <div id="DIV_64">
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement