1(function ($, once) { 2 'use strict'; 3 Drupal.behaviors.handleFootnotes = { 4 attach: function(context) { 5 once('handleFootnotes', 'html', context).forEach( function (element) { 6 const footnotesList = document.createElement("ul"); 7 $('ul.nea_footnotes').find('li').each(function(i, el) { 8 const clone = el.cloneNode(true); 9 footnotesList.append(clone); 10 }) 11 12 if(footnotesList.childElementCount===1) { 13 $('.references-list-header-plural', context).addClass('hidden'); 14 } 15 16 if(footnotesList.hasChildNodes()) { 17 $('ul.nea_footnotes').remove() 18 $('div.references-list').append(footnotesList); 19 $('.references', context).removeClass('hidden'); 20 } 21 22 }) 23 } 24 }; 25})(jQuery, once);
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.