PageSourceSearch

https://eamesfoundation.org/wp-content/themes/eames-foundation-child/accessibility.js?ver=1.0

js eamesfoundation.org collected 2026-10-02 03:41:19 UTC 1,094 bytes, 25 lines download raw bytes

1'use strict'
2
3/**
4 * Section Overlay Links
5*/
6const kbSectionLinkOverlays = document.querySelectorAll('.kb-section-link-overlay:not([aria-label],[aria-labelledby])');
7if( kbSectionLinkOverlays ) {
8  kbSectionLinkOverlays.forEach(function(el, index) { // loop each overlay link
9    const parentElement = el.parentElement; // get parent section element
10    if( parentElement.classList ) {
11      if( parentElement.classList.contains('kb-section-has-link') ) { // if section has overlay link
12        const insideInnerCol = parentElement.querySelector('.kt-inside-inner-col');
13        if( insideInnerCol ) {
14          if( !insideInnerCol.hasAttribute('id') ) { // if it doesn't already have an id
15            const newID = 'kt-inside-inner-col' + index; // create new ID to reference
16            insideInnerCol.id = newID; // set ID
17          } else { // otherwise, just add the index
18            insideInnerCol.id = insideInnerCol.id + index;
19          }
20          el.setAttribute('aria-labelledby', insideInnerCol.id); // set aria-labelledby
21        }
22      }
23    }
24  });
25}

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.