1(function() { 2 // DIFFERENTIATE BETTWEEN MOUSE/KEYBOARD INPUT 3 // window.addEventListener('keydown', addTabClass); 4 // window.addEventListener('click', removeTabClass); 5 6 // add tab class when tab button is pressed for conditional accessibility mode 7 // function addTabClass(e) { 8 // if (e.keyCode !== 9) return; 9 // document.body.classList.add('accessibility-enabled'); 10 // } 11 12 // remove tab class from body upon mouse click to disable assessibility mode 13 // function removeTabClass(e) { 14 // document.body.classList.remove('accessibility-enabled'); 15 // } 16 17 // Add role attribute to all a.button elements 18 const allLinks = document.querySelectorAll('a'); 19 allLinks.forEach(link => { 20 if (link.classList.contains('button')) { 21 !link.hasAttribute('role') ? link.setAttribute('role', 'button') : null; 22 } 23 if (link.getAttribute('target') !== '_blank') { 24 link.setAttribute('target', '_self'); 25 } 26 }); 27 28 29 setTimeout(() => { 30 const prevSwiperBtn = document.querySelectorAll('.swiper-button-prev'); 31 const nextSwiperBtn = document.querySelectorAll('.swiper-button-next'); 32 [...prevSwiperBtn, ...nextSwiperBtn].forEach(btn => btn.setAttribute('tabindex', '-1')); 33 }, 200); 34})()
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.