1function expand(i) { 2 const expand_content = document.getElementById('expand-content-' + i); 3 const expand_list = document.getElementById('expand-list-' + i); 4 const collapse = document.getElementById('collapse' + i); 5 const icon = document.getElementById('icon' + i); 6 if (collapse.dataset.expanded == 'true') { 7 collapse.dataset.expanded = 'false'; 8 expand_content.style.maxHeight = 0; 9 expand_content.style.transition = '1s'; 10 expand_content.style.transitionProperty = 'all'; 11 expand_list.style.transition = '1s' 12 icon.className = icon.dataset.opened; 13 } else { 14 collapse.dataset.expanded = 'true'; 15 expand_content.style.transition = '1s'; 16 expand_list.style.transition = '1s'; 17 expand_content.style.transitionProperty = 'all'; 18 expand_content.style.maxHeight = expand_content.scrollHeight + 'px'; 19 icon.className = icon.dataset.closed; 20 } 21 22}
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.