1document.addEventListener('DOMContentLoaded', function() { 2 const button = document.getElementById('toggleButton'); 3 const listItems = document.querySelectorAll('#testimonialsList .testimonials-list__item'); 4 let isExpanded = false; 5 const initialCount = 9; 6 7 button.addEventListener('click', function(e) { 8 e.preventDefault(); 9 10 if (!isExpanded) { 11 // ÐоказÑваем вÑе 12 listItems.forEach(function(item) { 13 item.style.display = 'block'; 14 }); 15 button.textContent = myTranslations.showLess; // ÐеÑеведÑннÑй ÑекÑÑ 16 isExpanded = true; 17 } else { 18 // СкÑÑваем поÑле пеÑвÑÑ 3 19 listItems.forEach(function(item, index) { 20 if (index >= initialCount) { 21 item.style.display = 'none'; 22 } 23 }); 24 button.textContent = myTranslations.showMore; // ÐеÑеведÑннÑй ÑекÑÑ 25 isExpanded = false; 26 } 27 }); 28}); 29 30
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.