1/** 2 * ФÑнкÑÐ¸Ñ Ð°Ð²Ñо комплика 3 */ 4function fillInAddress() { 5 6 var place = autocomplete.getPlace(); 7 8 var jsonRawLocation = JSON.stringify({ 9 lat: place.geometry.location.lat(), 10 lng: place.geometry.location.lng() 11 }); 12 13 //ТолÑко ÑÑÑ Ð¾Ð±ÑабаÑÑваем код ÑÑÑанÑ, Ñ.к. он нÑжен ÑолÑко пÑи набоÑе ÑÑками в ÑоÑо ÑÐ°Ð·Ð´ÐµÐ»Ð°Ñ , Ñам Ð½ÐµÑ ÐºÐ°ÑÑÑ 14 $("#visible-location-value").text(place.formatted_address); 15 $("#jsonRawLocation").val(jsonRawLocation); 16 $('.home__choice-dropdown').slideToggle(); 17 18 place.address_components.forEach(function (component) { 19 20 if (component.types.includes('country')) { 21 var county_code = component.short_name; 22 $("#countryCode").val(county_code); 23 } 24 }); 25} 26 27$(document).ready(function () { 28 $(".filter-item_location .filter-item__title").click(function (e) { 29 $('.home__choice-dropdown').slideToggle(); 30 }); 31 // пÑи клике на поиÑковое поле оÑиÑаем его 32 $('#location-search-au').on('focus', function () { 33 $('#location-search-au').val(''); 34 }) 35 // пÑи клике на лÑбÑÑ Ð´ÑÑгÑÑ Ð¾Ð±Ð»Ð°ÑÑÑ ÑÑÑаниÑÑ - закÑÑваем вÑпадаÑÑее окно Ñ Ð¿Ð¾Ð¸Ñком 36 $('body').on('click', function (e) { 37 let $target = $(e.target); 38 if (!$target.hasClass('filter-item__title') && !$target.hasClass('ui-autocomplete-input')) { 39 $('.home__choice-dropdown').slideUp(); 40 } 41 }); 42}) 43;
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.