1function zoom(myImage, myWidth, myHeight) 2{ 3 myLeft = (window.screen.width - myWidth ) / 2 ; 4 myTop = (window.screen.height - myHeight ) / 2; 5 myWidth = myWidth + 6; 6 myHeight = myHeight + 6; 7 8 myWindow = window.open("","popup","height="+myHeight+"px,width="+myWidth+"px,left="+myLeft+"px,top="+myTop+"px,scrollbars=no,toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=yes"); 9 10 myWindow.document.write("<!DOCTYPE html>\n"); 11 myWindow.document.write("<html>\n\t<head>\n\t\t<meta charset=\"UTF-8\">\n\t\t<title>Preview</title>\n\t</head>\n"); 12 myWindow.document.write("<style type=\"text/css\">\nhtml, body {\nbackground: Black;\nmargin: 0;\npadding: 0;\ntext-align: center;\n}\nimg {\nborder: 0;\n}\n</style>\n"); 13 myWindow.document.write('<script> var NS = (navigator.appName=="Netscape")?true:false;var viewportwidth=0;var viewportheight=0;function getViewport () { if (typeof window.innerWidth != \'undefined\') { viewportwidth = parseInt(window.innerWidth); viewportheight = parseInt(window.innerHeight); } else if (typeof document.documentElement != \'undefined\' && typeof document.documentElement.clientWidth != \'undefined\' && document.documentElement.clientWidth != 0){ viewportwidth = parseInt(document.documentElement.clientWidth);viewportheight = parseInt(document.documentElement.clientHeight);} else { viewportwidth = parseInt(document.getElementsByTagName(\'body\')[0].clientWidth); viewportheight = parseInt(document.getElementsByTagName(\'body\')[0].clientHeight); }}'); 14 myWindow.document.write('function FitPic() {getViewport();if (viewportwidth==0 || viewportheight==0) return; iWidth = viewportwidth;iHeight = viewportheight;iWidth = document.images[0].width - iWidth;iHeight = document.images[0].height - iHeight;window.resizeBy(iWidth, iHeight);if (iWidth!=0 || iHeight!=0) { getViewport(); iWidth = viewportwidth;iHeight = viewportheight;myLeft = (window.screen.width - document.images[0].width ) / 2 ;myTop = (window.screen.height - document.images[0].height) / 2; window.moveTo(myLeft,myTop);} window.focus();};</script>'); 15 myWindow.document.write("\t<body onload=\"FitPic();window.focus();\">\n"); 16 myWindow.document.write("\t\t<a href=\"#\" onclick=\"parent.close();\" title=\"ZavÅÃt okno\"><img src=\""+myImage+"\" alt=\"Preview\"></a>\n"); 17 myWindow.document.write("\t</body>\n</html>"); 18 myWindow.document.close(); 19 myWindow.focus(); 20 return myWindow; 21} 22 23 24function SPUWC(sAdresa, iSirka, iVyska,bScroll) 25{ 26 iMyWidth = (screen.availWidth - iSirka ) / 2 ; 27 iMyHeight = (screen.availHeight - iVyska ) / 2; 28 if (bScroll) 29 sScroll='yes'; 30 else 31 sScroll='no'; 32 return window.open(sAdresa, '', 'width='+iSirka+'px, height='+iVyska+'px, left=' + iMyWidth + ',top=' + iMyHeight + ', resizable=yes, titlebar=no, status=yes, address=no, scrollbars='+sScroll+', dependent=yes, modal=yes'); 33} 34 35function ShowPopUpWindowCenter(sAdresa, iSirka, iVyska) 36{ 37 if (iSirka<150) 38 iSirka=150; 39 return SPUWC(sAdresa, iSirka, iVyska,false); 40} 41 42function ShowPopUpWindowCenterScroll(sAdresa, iSirka, iVyska) 43{ 44 return SPUWC(sAdresa, iSirka, iVyska,true); 45} 46 47function showhide(id) 48{ 49 sclass="hidden"; 50 oEl=document.getElementById(id); 51 if (cls.has(oEl,sclass)==true) 52 cls.remove(oEl,sclass); 53 else 54 cls.add(oEl,sclass); 55 return false; 56} 57 58function ShowPopUpWindowFullScreen(sAdresa) 59{ 60 var iSirka=screen.availWidth; 61 var iVyska=screen.availHeight; 62 var iZacatekX = 0; 63 var iZacatekY = 0; 64 var bAutoClose = true; 65 oWindow=window.open(sAdresa,'','scrollbars,width='+iSirka+',height='+iVyska); 66 if (!oWindow) 67 return oWindow; 68 69 oWindow.blur(); 70 window.focus(); 71 oWindow.moveTo(iZacatekX,iZacatekY); 72 oWindow.resizeTo(iSirka,iVyska); 73 74 oWindow.focus(); 75 if (bAutoClose) 76 window.onunload = function(){oWindow.close()} 77 78 return oWindow; 79}
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.