1function mainSlider() { 2 new Glider(document.querySelector('.main-slider'), { 3 slidesToShow: 1, 4 dots: '.slider-main-dots', 5 arrows: { 6 prev: '.slider-main-prev', 7 next: '.slider-main-next' 8 } 9 }) 10} 11 12function faqBlock() { 13 const questionBtnArr = document.querySelectorAll('.question-toggle'); 14 let questionBtn; 15 let questionContainer; 16 17 questionBtnArr.forEach(btn => { 18 btn.addEventListener('click', (e) => { 19 e.preventDefault(); 20 // questionBtn = e.currentTarget; 21 // questionContainer = questionBtn.closest('.faq-question'); 22 23 // questionBtn.querySelector('span').classList.toggle('active') 24 // questionContainer.querySelector('.question-answer').classList.toggle('active') 25 26 }) 27 }) 28} 29 30function mobileTableLabels() { 31 document.querySelectorAll('table').forEach(function (table) { 32 if (table.classList.contains('table-mobile-ready')) return; 33 34 let headers = []; 35 if (table.tHead) { 36 const headRow = table.tHead.querySelector('tr'); 37 if (headRow) { 38 headers = Array.from(headRow.querySelectorAll('th, td')) 39 .map(c => c.textContent.replace(/\s+/g, ' ').trim()); 40 } 41 } 42 43 if ((!headers.length || headers.every(h => !h)) && table.tBodies.length) { 44 const cols = table.tBodies[0].rows[0] ? table.tBodies[0].rows[0].cells.length : 0; 45 if (cols === 2) headers = ['Positive', 'Negative']; 46 } 47 48 if (!headers.length) return; 49 50 Array.from(table.tBodies).forEach(function (tbody) { 51 Array.from(tbody.rows).forEach(function (tr) { 52 Array.from(tr.cells).forEach(function (cell, i) { 53 if (cell.tagName === 'TD' && headers[i] && !cell.hasAttribute('data-label')) { 54 cell.setAttribute('data-label', headers[i]); 55 } 56 }); 57 }); 58 }); 59 60 table.classList.add('table-mobile-ready'); 61 }); 62} 63 64window.addEventListener('load', function(){ 65 66 mainSlider() 67 faqBlock() 68 mobileTableLabels() 69 70 })
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.