1document.addEventListener('DOMContentLoaded', function () { 2 var subdomain = location.hostname.split('.')[0] 3 var selects = document.querySelectorAll('.city_location') 4 5 if (subdomain == 'msk') { 6 selects.forEach(el => el.options[1].setAttribute('selected', 'selected')); 7 } 8 else if (subdomain == 'chel') { 9 selects.forEach(el => el.options[2].setAttribute('selected', 'selected')); 10 } 11 else { 12 selects.forEach(el => el.options[0].setAttribute('selected', 'selected')); 13 } 14}); 15 16if (document.getElementById("studios")) { 17 const AdressDefault = document.getElementById('studios').options[0].setAttribute('selected', 'selected'); 18 19 const FIO = document.getElementById('fio') 20 const Tel = document.getElementById('phone') 21 const Email = document.getElementById('email') 22 23 const FormCheck = () => { 24 var button = document.getElementById('buy_btn') 25 var GetFIO = FIO.value; 26 var GetTel = Tel.value; 27 var GetEmail = Email.value; 28 if (!GetFIO || !GetTel || !GetEmail) { 29 button.setAttribute('disabled', 'disabled') 30 } 31 else { 32 button.removeAttribute('disabled') 33 } 34 } 35 36 document.addEventListener('DOMContentLoaded', FormCheck) 37 FIO.addEventListener('change', FormCheck) 38 Tel.addEventListener('change', FormCheck) 39 Email.addEventListener('change', FormCheck) 40 document.addEventListener('htmx:afterRequest', FormCheck) 41} 42
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.