1 2function imageResize (img, maxWidth) 3{ 4 if (img.width > maxWidth && maxWidth > 0) img.width = maxWidth; 5} 6 7function CaricaFoto(img) 8{ 9 foto1= new Image(); 10 img = encodeURI(img); 11 foto1.src = (img); 12 Controlla(img); 13} 14 15function Controlla(img) 16{ 17 if ( (foto1.width != 0) && (foto1.height != 0) ) { 18 viewFoto(img); 19 } else { 20 funzione = "Controlla('\"+img+\"')"; 21 intervallo = setTimeout(funzione, 20); 22 } 23} 24 25function viewFoto(img) 26{ 27 largh = foto1.width; 28 altez = foto1.height; 29 stringa = "width=" + largh + ",height=" + altez; 30 finestra = window.open ('','', stringa); 31 finestra.document.write ("<html><body leftmargin=0 topmargin=0>"); 32 finestra.document.write ("<a href='javascript:this.close()'><img border=0 src="); 33 finestra.document.write (img); 34 finestra.document.write ("></a></body></html>"); 35 finestra.document.close(); 36 return false; 37}
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.