1(function (Drupal, drupalSettings) { 2 'use strict'; 3 /** 4 * Solve issue in tablet and desktop layout on devices without hover support where the submenu canât be accessed because 5 * the trigger button is replaced by the parent link as submenu is displayed on hover and keyboard navigation still works due to focus logic. 6 */ 7 const enableSubmenuTriggerIconClick = (() => { 8 document.querySelectorAll('.menu-annedal-horizontal-list a.submenu-trigger-link.cta-level-1 .submenu-trigger-icon').forEach((icon) => { 9 const link = icon.closest('a.submenu-trigger-link.cta-level-1'); 10 if (!link) return; 11 12 const triggerButton = link.parentElement.querySelector('a.submenu-trigger-link.cta-level-1 + button.submenu-trigger'); 13 14 if (!triggerButton) return; 15 16 const handler = (e) => { 17 e.preventDefault(); 18 triggerButton.click(); 19 }; 20 21 icon.addEventListener('click', handler); 22 icon.addEventListener('touchstart', handler); 23 }); 24 })(); 25})(Drupal, drupalSettings);
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.