PageSourceSearch

https://www.chcf.org/wp-content/plugins/chcf-grantees/js/grantee-resources.js?ver=1790206929

js chcf.org collected 2026-09-24 08:49:23 UTC 837 bytes, 26 lines download raw bytes

1document.querySelectorAll('.chcf-facet h5').forEach((h5, i, all) => {
2  const facet = h5.nextElementSibling;
3  const isLast = i === all.length - 1;
4  if (isLast) {
5    h5.classList.add('is-static');
6    facet.classList.add('is-open');
7    return;
8  }
9  if (i === 0) {
10    h5.classList.add('is-open');
11    facet.classList.add('is-open');
12  }
13  h5.addEventListener('click', () => {
14    h5.classList.toggle('is-open');
15    facet.classList.toggle('is-open');
16  });
17});
18
19const trigger = document.querySelector('.chw-filter-trigger');
20const facets = document.getElementById('chw-facets');
21
22trigger.addEventListener('click', function () {
23  const isExpanded = this.getAttribute('aria-expanded') === 'true';
24  this.setAttribute('aria-expanded', String(!isExpanded));
25  facets.style.maxHeight = isExpanded ? '0' : facets.scrollHeight + 'px';
26});

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.