1function showOverlayOnElement(element) { 2 element = $(element); 3 if(!element) return; 4 if(!element.id) element.identify(); 5 overlayElement = Element.clone($('wc-overlay'), true); 6 overlayElement.setAttribute('id', element.id+'-wc-overlay'); 7 overlayElement.setStyle({ 8 display:'block', 9 top: element.cumulativeOffset().top+'px', 10 width: element.getWidth()+'px', 11 height: element.getHeight()+'px', 12 left: element.cumulativeOffset().left+'px' 13 }); 14 $$('body')[0].insert(overlayElement); 15} 16function hideOverlayOnElement(element) { 17 $(element.id+'-wc-overlay').remove(); 18} 19function showOverlayOnElements(elements) { 20 for(var i=0; i<elements.lenght; i++) { 21 showOverlayOnElement(elements[i]); 22 } 23} 24function hideOverlayOnElements(elements) { 25 for(var i=0; i<elements.lenght; i++) { 26 hideOverlayOnElement(elements[i]); 27 } 28}
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.