1// Add open attribute to the first details element and ensure proper margin classes 2document.addEventListener('DOMContentLoaded', function () { 3 const detailsElements = document.querySelectorAll('.mobile-nav-details'); 4 5 if (detailsElements.length > 0) { 6 // Set the first element to be open 7 detailsElements[0].setAttribute('open', ''); 8 9 // Add mb-4 class to all elements except the last one 10 detailsElements.forEach((element, index) => { 11 if (index < detailsElements.length - 1) { 12 element.classList.add('mb-5'); 13 } else { 14 // Ensure the last element doesn't have mb-4 class 15 element.classList.remove('mb-5'); 16 } 17 }); 18 } 19});
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.