PageSourceSearch

https://www2.lehigh.edu/themes/custom/lehigh/js/content-types/univ…cial-media-footer-accessibility.js?v=11.4.8

js lehigh.edu collected 2026-10-01 08:41:44 UTC 1,031 bytes, 23 lines download raw bytes

1document.addEventListener('DOMContentLoaded', () => {
2    // Remove the 'aria-hidden' attribute from the targeted elements
3    document.querySelectorAll('#block-lehigh-socialmedia .nav-item a[aria-hidden]').forEach(element => {
4        element.removeAttribute('aria-hidden');
5    });
6
7    // Use a MutationObserver to monitor for changes and ensure 'aria-hidden' is not re-added
8    const observer = new MutationObserver(mutations => {
9        mutations.forEach(mutation => {
10            if (mutation.type === 'attributes' && mutation.attributeName === 'aria-hidden') {
11                const target = mutation.target;
12                if (target.matches('#block-lehigh-socialmedia .nav-item a')) {
13                    target.removeAttribute('aria-hidden');
14                }
15            }
16        });
17    });
18
19    // Observe all a.nav-link elements for attribute changes
20    document.querySelectorAll('#block-lehigh-socialmedia .nav-item a').forEach(element => {
21        observer.observe(element, { attributes: true });
22    });
23});

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.