1function alignAuthorsInRows(){ 2const cards=document.querySelectorAll(".section_articles_slider_item"); 3if(cards.length===0) return; 4const cardWidth=cards[0].offsetWidth; 5const containerWidth=cards[0].parentElement.offsetWidth; 6const perRow=Math.floor(containerWidth / cardWidth)||1; 7cards.forEach((card)=> { 8const author=card.querySelector(".section_articles_slider_item_author"); 9if(author){ 10author.style.minHeight=""; 11author.style.display="flex"; 12}}); 13for (let i=0; i < cards.length; i +=perRow){ 14const rowCards=Array.from(cards).slice(i, i + perRow); 15let hasAuthor=false; 16let maxHeight=0; 17rowCards.forEach((card)=> { 18const author=card.querySelector(".section_articles_slider_item_author"); 19if(author&&author.innerText.trim()!==""){ 20hasAuthor=true; 21author.style.minHeight="auto"; 22const h=author.offsetHeight; 23if(h > maxHeight) maxHeight=h; 24}}); 25rowCards.forEach((card)=> { 26const author=card.querySelector(".section_articles_slider_item_author"); 27if(!author) return; 28if(hasAuthor){ 29author.style.display="flex"; 30author.style.minHeight=maxHeight + "px"; 31}else{ 32author.style.display="none"; 33}}); 34}} 35window.addEventListener("load", alignAuthorsInRows); 36window.addEventListener("resize", ()=> { 37clearTimeout(window.__alignTimer); 38window.__alignTimer=setTimeout(alignAuthorsInRows, 100); 39});
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.