1(function (Drupal, once) { 2 'use strict'; 3 4 Drupal.behaviors.tableSort = { 5 attach: function (context, settings) { 6 once('table-initialized', 'table', context).forEach(function (table) { 7 if (table.querySelector('thead')) { 8 // DataTable initialisieren 9 new DataTable(table, { 10 info: false, 11 paging: false, 12 language: { 13 search: '', 14 searchPlaceholder: 'Suchbegriff eingeben', 15 url: '//cdn.datatables.net/plug-ins/2.2.2/i18n/de-DE.json', 16 } 17 }); 18 19 // Ãberprüfen, ob es zwei colgroup-Elemente gibt 20 const colgroups = table.querySelectorAll('colgroup'); 21 if (colgroups.length === 2) { 22 colgroups[0].style.display = 'none'; // Erste colgroup ausblenden 23 } 24 } 25 }); 26 } 27 }; 28})(Drupal, 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.