PageSourceSearch

https://www2.lehigh.edu/themes/custom/lehigh/js/content-types/universal/post-content-components.js?v=11.4.7

js lehigh.edu collected 2026-09-24 08:28:41 UTC 720 bytes, 19 lines download raw bytes

1document.addEventListener("DOMContentLoaded", function () {
2  function addClassesToFirstAndLastParagraphsInBlock() {
3    const paragraphs = document.querySelectorAll(
4      '#block-lehigh-views-block-post-content-components-block-1 .paragraph.component-set'
5    );
6
7    if (paragraphs.length === 0) return;
8
9    paragraphs[0].classList.add('first-post-content-paragraph');
10    paragraphs[paragraphs.length - 1].classList.add('last-post-content-paragraph');
11
12    // Optionally add no-page-components if the main field is missing
13    if (!document.querySelector('.field--name-field-page-components')) {
14      paragraphs[0].classList.add('no-page-components');
15    }
16  }
17
18  addClassesToFirstAndLastParagraphsInBlock();
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.