ADUs are life changing
Are you ready to change yours?

var autocomplete; (function($){ $('.ih-addr-input input').on('keypress', function(e){ if ( e.which === 13 ) { $('.ih-addr-submit').click(); } }); $('.ih-addr-submit').on('click', function(e){ e.preventDefault(); var place = autocomplete.getPlace(); if (place && place.address_components) { var addressNumber = ''; var addressStreet = ''; var city = ''; var state = ''; var zipCode = ''; for (var i = 0; i < place.address_components.length; i++) { var addressType = place.address_components[i].types[0]; switch (addressType) { case 'street_number': addressNumber = place.address_components[i].long_name; break; case 'route': addressStreet = place.address_components[i].long_name; break; case 'locality': city = place.address_components[i].long_name; break; case 'administrative_area_level_1': state = place.address_components[i].short_name; break; case 'postal_code': zipCode = place.address_components[i].long_name; break; } } var fullAddress = encodeURIComponent(addressNumber + ' ' + addressStreet); var encodedCity = encodeURIComponent(city); var encodedState = encodeURIComponent(state); var encodedZip = encodeURIComponent(zipCode); window.open($(this).attr('href') + '?address=' + fullAddress + '&city=' + encodedCity + '&state=' + encodedState + '&zip=' + encodedZip, '_blank'); } }); })(jQuery); function initAutoComplete() { var input = document.querySelector('.ih-addr-input input'); autocomplete = new google.maps.places.Autocomplete(input); } jQuery(window).on('load', function() { jQuery('.ih-addr-input input').on('focus', function(){ if (!jQuery(this).attr('autocomplete')) { var script = document.createElement('script'); script.type = 'text/javascript'; script.src = 'https://maps.googleapis.com/maps/api/js?key=AIzaSyB-vVCRdSt0RHFpEv_N6yicCywDIpfVaug&libraries=places&callback=initAutoComplete'; document.body.appendChild(script); } }); });

What Stage is Your Accessory Dwelling Unit At?

(function($){ jQuery(window).on('load', function(){ var stagesHeight = $('#mx-stage-sec').outerHeight(); var windowWidth = $(window).width(); if ( windowWidth > 715 && $('.fusion-blog-archive .post:nth-child(5)').length ) { $('.fusion-blog-archive .post:nth-child(5),.fusion-blog-archive .post:nth-child(6)').css('padding-top', stagesHeight + 80); } else if ( $('.fusion-blog-archive .post:nth-child(5)').length ) { $('.fusion-blog-archive .post:nth-child(5)').css('padding-top', stagesHeight + 80); } else { $('.fusion-blog-archive .post:last-child').css('margin-bottom', stagesHeight + 80); } setTimeout(function(){ var articleTop = $('.fusion-blog-archive .post:nth-child(4)').length ? $('.fusion-blog-archive .post:nth-child(4)').offset().top+$('.fusion-blog-archive .post:nth-child(4)').outerHeight() : $('.fusion-blog-archive .post:last-child').offset().top+$('.fusion-blog-archive .post:last-child').outerHeight(); $('#mx-stage-sec').css('top', articleTop); },1000); }); })(jQuery);
Go to Top