PageSourceSearch

https://www2.lehigh.edu/themes/custom/lehigh/js/components/component-accordion-scroll.js?v=11.4.8

js lehigh.edu collected 2026-10-01 08:45:38 UTC 544 bytes, 19 lines download raw bytes

1const accordionElements = document.querySelectorAll('.accordion');
2
3accordionElements.forEach(accordion => {
4  accordion.addEventListener('shown.bs.collapse', function (event) {
5
6    const item = event.target.closest('.accordion-item');
7    const header = item.querySelector('.accordion-header');
8
9    const buffer = 120; // adjust depending on your fixed nav height
10
11    const headerTop = header.getBoundingClientRect().top + window.pageYOffset - buffer;
12
13    window.scrollTo({
14      top: headerTop,
15      behavior: 'smooth'
16    });
17
18  });
19});

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.