1(function ($, Drupal) { 2 3 Drupal.behaviors.usgs_truncate = { 4 attach: function (context) { 5 const overviewTitles = $(once('usgs-truncate-titles', ".c-usgs-overview-card .d-title", context)); 6 if (overviewTitles.length > 0) { 7 overviewTitles.dotdotdot({ 8 ellipsis: " ...", 9 height: 240, 10 watch: true 11 }); 12 } 13 14 const teaserTitles = $(once('usgs-truncate-titles', ".c-usgs-teaser .d-title", context)); 15 if (teaserTitles.length > 0) { 16 teaserTitles.dotdotdot({ 17 ellipsis: " ...", 18 height: 100, 19 watch: true 20 }); 21 } 22 } 23 }; 24 25})(jQuery, Drupal); 26 27 28
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.