1var gAutoPrint = true; // Flag for whether or not to automatically call the print function 2function printSpecial(pid) 3{ if (document.getElementById != null) 4 { var html = '<HTML>\n<HEAD>\n'; if (document.getElementsByTagName != null) 5 { var headTags = document.getElementsByTagName("head"); 6 if (headTags.length > 0) 7 html += headTags[0].innerHTML; } 8 html += '<style type="text/css"> html {margin-top: 0px !important;} </style>'; 9 html += '\n</HEAD>\n<BODY onload="window.print()">\n'; 10 var printReadyElem = document.getElementById(pid); 11 if (printReadyElem != null) 12 { html += printReadyElem.innerHTML; } 13 else 14 { alert("Could not find the printReady section in the HTML"); return; } 15 html += '\n</BODY>\n</HTML>'; 16 var printWin = window.open("","printSpecial","width=640, height=360"); 17 printWin.document.open(); 18 printWin.document.write(html); 19 printWin.document.close(); printWin.document.focus(); 20 if (gAutoPrint) 21 printWin.print(); } 22 else 23 { alert("Sorry, the print ready feature is only available in modern browsers."); } 24}
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.