1$(document).ready(function(){ 2 $('#file-upload').bind('change', function() { 3 var fileName = ''; 4 fileName = $(this).val(); 5 $('#file-selected').html(fileName); 6 }); 7 8 let selectSystem = document.querySelector('.js-form-calculation-system'); 9 let selectLink = document.querySelector('.form-calculation__list'); 10 const linkBox = document.querySelector('.js-form-calculation__btn-upload'); 11 12 if (!selectSystem.value) { 13 linkBox.style.display = 'none'; 14 } 15 16 selectSystem.addEventListener('change', function(e) { 17 const listName = selectSystem.selectedOptions[0].getAttribute('data-value'); 18 const optionName = selectSystem.selectedOptions[0].value; 19 selectLink.href = '/catalog/questionnaire/index.php?p=' + listName; 20 console.log(optionName); 21 if (listName !== null) { 22 linkBox.style.display = 'block'; 23 appendElementButton(optionName, selectLink); 24 25 document.querySelector('.js-form-calc-close').addEventListener('click', function(e){ 26 e.preventDefault(); 27 hideModal(); 28 }, {once: false}); 29 } else { 30 linkBox.style.display = 'none'; 31 } 32 }) 33 34 // ÐÑи вÑбоÑе ÑиÑÑÐµÐ¼Ñ Ð¿Ñедлагаем пеÑейÑи на опÑоÑник или оÑÑаÑÑÑÑ 35 function appendElementButton(name, link) { 36 const appendBlock = ` 37 <div class="form-calc__btn-box"> 38 <h5 class="popup-mess__red">СÑÐ°Ð·Ñ Ð·Ð°Ð¿Ð¾Ð»Ð½ÐµÐ½Ð½Ñй опÑоÑнÑй лиÑÑ Ñ ÑказаннÑми паÑамеÑÑами знаÑиÑелÑно ÑÑкоÑÐ¸Ñ Ð¿ÑоÑеÑÑ Ð¿ÑоÑÑеÑа пÑоекÑа.</h5> 39 <a href="` + link + `" class="btn form-calc__btn">ÐеÑейÑи на опÑоÑнÑй лиÑÑ ` + name + `</a> 40 <a href="#" class="btn form-calc__btn js-form-calc-close">ÐÑодолжиÑÑ Ð·Ð°Ð¿Ð¾Ð»Ð½ÑÑÑ ÑоÑмÑ</a> 41 </div> 42 `; 43 44 showModal('modal-message', appendBlock, 500000); 45 } 46 47});
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.