1$.fn.textWidth = function () { 2 var self = $(this); 3 var el = self.children(); 4 if (!el.lengh) { 5 el = self; 6 } 7 var calculator = $('<span style="display: inline-block;" />'); 8 var width; 9 10 el.wrap(calculator); 11 width = el.parent().width(); // parent = the calculator wrapper 12 el.unwrap(); 13 return width; 14};
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.