1function anx_ai_article_summary_toggleExpand() { 2 const container = document.getElementById('anx_ai_summary'); 3 const anx_ai_article_summary_btnText = document.getElementById('anx_ai_article_summary_btnText'); 4 5 // Toggle the expanded class 6 const isExpanded = container.classList.toggle('anx_ai_article_summary_expanded'); 7 8 var showMoreLabel = "Show more"; 9 var showLessLabel = "Show less" 10 const lang = document.documentElement.lang; 11 if (lang.startsWith('fr')) { 12 showMoreLabel = "Montrer davantage"; 13 showLessLabel = "Montrer moins" 14 } 15 16 // Update button text based on state 17 anx_ai_article_summary_btnText.textContent = isExpanded ? showLessLabel : showMoreLabel; 18 if(isExpanded){ 19 gtag('event', 'ai_summary_expand_button_expanded'); 20 }else{ 21 gtag('event', 'ai_summary_expand_button_collapsed'); 22 } 23 24 }
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.