PageSourceSearch

https://kalameh.com/themes/custom/kalameh_webapp/components/site-footer/site-footer.js?tm909j

js kalameh.com collected 2026-10-02 11:06:54 UTC 752 bytes, 24 lines download raw bytes

1/**
2 * @file
3 * Site footer — collapsible columns on small screens.
4 *
5 * On viewports ≤ 880 px the footer link columns collapse behind their <h4>.
6 * CSS already handles the animation (max-height / opacity transitions via the
7 * .ft-open class); this script wires the click handler that toggles it.
8 */
9((Drupal, once) => {
10  'use strict';
11
12  Drupal.behaviors.siteFooterCollapse = {
13    attach(context) {
14      const footer = once('ft-collapse', 'footer.site', context).shift();
15      if (!footer) return;
16
17      footer.querySelectorAll('.columns > div:not(:first-child) > h4').forEach(h4 => {
18        h4.addEventListener('click', () => {
19          h4.parentElement.classList.toggle('ft-open');
20        });
21      });
22    },
23  };
24})(Drupal, once);

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.