1// This file is used for images that are in the body of the article. 2$(document).ready(function() { 3 // format the image sources to give credit 4 $('figcaption .source_text').each(function() { 5 var $sourceDiv = $(this); 6 7 if ($sourceDiv.text().trim().length > 0) { 8 // handle if there's html in the div 9 var newSourceHtml = $sourceDiv.html().trim(); 10 $sourceDiv.html(newSourceHtml); 11 12 // handle the optional caption 13 if ($sourceDiv.siblings('.caption_text')) { 14 var $captionDiv = $($sourceDiv.siblings('.caption_text')[0]); 15 var $captionText = $captionDiv.text().trim(); 16 if ($captionText.length === 0 || $captionText === 'Optional Caption') { 17 $captionDiv.hide(); 18 } 19 } 20 } 21 }); 22});
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.