PageSourceSearch

https://playamopartners.com/wp-content/themes/playamopartners/assets/js/custom.js?ver=1788874448

js playamopartners.com collected 2026-10-02 14:34:40 UTC 1,068 bytes, 30 lines download raw bytes

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.