1jQuery(document).ready(function ($) { 2 if ($(".exppa-attachments-list ul").children().length === 0) { 3 $(".exppa-attachments-list").hide(); 4 } 5 6 if ($(".exppa-attachment-urls ul").children().length === 0) { 7 $(".exppa-attachment-urls").hide(); 8 } 9 10 const attachmentTab = document.querySelector("#tab-exppa_attachments"); 11 if (!attachmentTab) return; 12 13 const attachmentLists = attachmentTab.querySelectorAll( 14 ".exppa-attachments-list ul, .exppa-attachment-urls ul" 15 ); 16 let hasItems = false; 17 18 attachmentLists.forEach((ul) => { 19 if (ul.children.length > 0) { 20 hasItems = true; 21 } 22 }); 23 24 if (!hasItems) { 25 const message = document.createElement("div"); 26 message.className = "exppa-no-attachments-message"; 27 message.textContent = "No attachments found."; 28 attachmentTab.appendChild(message); 29 } 30});
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.