PageSourceSearch

https://ndresponse.gov/themes/custom/ndit_base/js/pdf-caption-links.js?tjnzp9

js ndresponse.gov collected 2026-10-03 20:15:54 UTC 560 bytes, 15 lines download raw bytes

1(function (Drupal) {
2  Drupal.behaviors.addTargetBlankToFigcaption = {
3    attach: function (context, settings) {
4      // Find all figures with the class 'caption' within the current context
5      document.querySelectorAll('figure.caption', context).forEach(figure => {
6        const figureLink = figure.querySelector('a[target="_blank"]');
7        const figcaptionLink = figure.querySelector('figcaption a');
8  
9        if (figureLink && figcaptionLink) {
10          figcaptionLink.setAttribute('target', '_blank');
11        }
12      });
13    }
14  };
15})(Drupal);

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.