PageSourceSearch

https://refect.app/static/dist-v/1790357571/layout/mobileAccordion.js

js refect.app collected 2026-09-28 06:15:07 UTC 1,656 bytes, 39 lines download raw bytes

1export function initMobileAccordion() {
2    const accordionItems = document.querySelectorAll('.h2-title');
3    accordionItems.forEach((item) => {
4        if (!(item instanceof HTMLElement))
5            return;
6        const htmlItem = item;
7        if (htmlItem.dataset.accordionInitialized === 'true')
8            return;
9        htmlItem.dataset.accordionInitialized = 'true';
10        htmlItem.addEventListener('click', () => {
11            requestAnimationFrame(() => {
12                if (window.innerWidth < 768) {
13                    accordionItems.forEach((otherItem) => {
14                        if (otherItem !== htmlItem && otherItem instanceof HTMLElement) {
15                            otherItem.classList.remove('active');
16                            const otherP = otherItem.querySelector('p');
17                            if (otherP) {
18                                otherP.classList.remove('accordion-open');
19                                otherP.classList.add('accordion-closed');
20                            }
21                        }
22                    });
23                }
24                const isActive = htmlItem.classList.toggle('active');
25                const p = htmlItem.querySelector('p');
26                if (p) {
27                    if (isActive) {
28                        p.classList.remove('accordion-closed');
29                        p.classList.add('accordion-open');
30                    }
31                    else {
32                        p.classList.remove('accordion-open');
33                        p.classList.add('accordion-closed');
34                    }
35                }
36            });
37        });
38    });
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.