PageSourceSearch

https://honma-office.jp/wp-content/package/js/nc-accordion.js

js honma-office.jp collected 2026-10-06 08:08:25 UTC 765 bytes, 21 lines download raw bytes

1document.addEventListener('click', (e) => {
2    // クリックされたものが「スイッチ」かどうか判定
3    const target = e.target.closest('.ncAccordion_switch');
4    if (!target) return;
5
6    const content = target.nextElementSibling;
7
8    if (content) {
9        // ★ スイッチとコンテンツの両方に .open をトグルする
10        target.classList.toggle('open');
11        content.classList.toggle('open');
12
13        if (content.style.maxHeight && content.style.maxHeight !== '0px') {
14            // 閉じるとき
15            content.style.maxHeight = '0px';
16        } else {
17            // 開くとき(中身の高さ scrollHeight を代入)
18            content.style.maxHeight = content.scrollHeight + 'px';
19        }
20    }
21});

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.