1 2 3function openMenu(e){ 4 e.preventDefault(); 5 6 if(document.body.classList.contains('menu-open')){ 7 document.body.classList.add('closing-menu'); 8 document.querySelector('.menu-container').addEventListener('transitionend', function () { 9 document.body.classList.remove('closing-menu'); 10 }, {once: true}); 11 document.body.classList.remove('menu-open'); 12 return; 13 } 14 document.body.classList.add('menu-open'); 15} 16 17function openContacts(evt) { 18 evt.preventDefault(); 19 let target = evt.target || this; 20 if (target.tagName !== 'A') { 21 target = $(target).parents('a'); 22 } 23 $('body').toggleClass('contact-open'); 24 $('.contact-fixed-block').on('click', {trg: target}, closeFixedWindow); 25 26}; 27 28 29function closeFixedWindow(evt) { 30 if($(evt.target).hasClass(evt.currentTarget.className)){ 31 console.log(evt.currentTarget.className); 32 $(evt.data.trg).click(); 33 $(evt.currentTarget).off('click', closeFixedWindow); 34 } 35 return; 36} 37function openLogin(e) { 38 e.preventDefault(); 39 let modalContent = $('#defaultEmptyModal').find('.modal-content'), 40 target = e.target.nodeName == 'A' ? e.target : e.target.closest('a'); 41 42 $.ajax({
43 headers: { 44 Accept : "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8" 45 }, 46 type: 'POST', 47 url: target.getAttribute('href'), 48 success: function(response) { 49 $('#defaultEmptyModal').one('hidden.bs.modal', function (e) { 50 $(modalContent).html(''); 51 }); 52 $(modalContent).html(response); 53 $('#defaultEmptyModal').modal('show'); 54 }, 55 error: function(xhr, str){ 56 console.error('error login!'); 57 } 58 }); 59 60} 61 62 63function reloadModal(e) { 64 e.preventDefault(); 65 let modalContent = $('#defaultEmptyModal').find('.modal-content'), 66 target = e.target.nodeName == 'A' ? e.target : e.target.closest('a'); 67 initLoaderIn(modalContent[0]); 68 setTimeout(function () { 69 $.ajax({ 70 headers: { 71 Accept : "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8" 72 }, 73 type: 'POST', 74 url: target.getAttribute('href'), 75 success: function(response) { 76 $(modalContent).html(response); 77 78 removeLoader(); 79 80 }, 81 error: function(xhr, str){ 82 console.error('error reloader!'); 83 } 84 }); 85 }, 1000); 86}
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.