1function PopupCenter(url, title, w, h) { 2 // Fixes dual-screen position Most browsers Firefox 3 var dualScreenLeft = window.screenLeft != undefined ? window.screenLeft : screen.left; 4 var dualScreenTop = window.screenTop != undefined ? window.screenTop : screen.top; 5 6 width = window.innerWidth ? window.innerWidth : document.documentElement.clientWidth ? document.documentElement.clientWidth : screen.width; 7 height = window.innerHeight ? window.innerHeight : document.documentElement.clientHeight ? document.documentElement.clientHeight : screen.height; 8 9 var left = ((width / 2) - (w / 2)) + dualScreenLeft; 10 var top = ((height / 2) - (h / 2)) + dualScreenTop; 11 var newWindow = window.open(url, title, 'scrollbars=yes, width=' + w + ', height=' + h + ', top=' + top + ', left=' + left); 12 13 // Puts focus on the newWindow 14 if (window.focus) { 15 //newWindow.focus(); 16 } 17 newWindow.onunload = function () { 18 //alert("Page will Reload!"); 19 //window.parent.popupClosing(); 20 }; 21 22// /**/var timer = setInterval(function() { 23 // if(newWindow.closed) { 24 // clearInterval(timer); 25 // confirm("Page will Reload!"); 26// window.parent.popupClosing(); 27 // } 28// }, 2000); 29 30} 31 32function popupClosing() { 33 34 window.location.href = window.location.href; 35}
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.