1function makepage(src) 2{ 3return "<html>\n" + 4"<head>\n" + 5"<title>Temporary Printing Window</title>\n" + 6"<script>\n" + 7"function step1() {\n" + 8" setTimeout('step2()', 10);\n" + 9"}\n" + 10"function step2() {\n" + 11" window.print();\n" + 12" window.close();\n" + 13"}\n" + 14"</scr" + "ipt>\n" + 15"</head>\n" + 16"<body onLoad='step1()'>\n" + 17"<img src='" + src + "'/>\n" + 18"</body>\n" + 19"</html>\n"; 20} 21function printme(evt) 22{ 23if (!evt) { 24// Old IE 25evt = window.event; 26} 27var image = evt.target; 28if (!image) { 29// Old IE 30image = window.event.srcElement; 31} 32src = image.src; 33link = "about:blank"; 34var pw = window.open(link, "_new"); 35pw.document.open(); 36pw.document.write(makepage(src)); 37pw.document.close(); 38}
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.