1function toggleExpandClass(element) { 2 element.classList.toggle("expanded"); 3} 4 5function shouldHideExpandButton(pElement) { 6 return pElement.clientHeight < 180; 7} 8 9function initializeExpandButtons(element) { 10 let pElement = element.querySelector(".expand-vertical-content-text"); 11 let button = element.querySelector(".expand-vertical-button"); 12 13 button.onclick = function () { 14 toggleExpandClass(element); 15 }; 16 17 if (shouldHideExpandButton(pElement)) { 18 } 19} 20 21function initializeTextAndExpandJS() { 22 if (window.textAndExpandJS === undefined) { 23 window.textAndExpandJS = true; 24 } 25} 26 27export function initializeTextBoxExpand() { 28 initializeTextAndExpandJS(); 29 30 const elements = document.querySelectorAll(".expand-vertical"); 31 elements.forEach(initializeExpandButtons); 32}
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.