1(function () { 2 "use strict"; 3 4 function openPopup(url, name, w, h) { 5 var dualScreenLeft = 6 window.screenLeft !== undefined ? window.screenLeft : window.screenX; 7 var dualScreenTop = 8 window.screenTop !== undefined ? window.screenTop : window.screenY; 9 var width = 10 window.innerWidth || document.documentElement.clientWidth || screen.width; 11 var height = 12 window.innerHeight || 13 document.documentElement.clientHeight || 14 screen.height; 15 var systemZoom = width / window.screen.availWidth; 16 var left = (width - w) / 2 / systemZoom + dualScreenLeft; 17 var top = (height - h) / 2 / systemZoom + dualScreenTop; 18 var features = 19 "scrollbars=yes,resizable=yes,width=" + 20 w + 21 ",height=" + 22 h + 23 ",top=" + 24 top + 25 ",left=" + 26 left; 27 var newWindow = window.open(url, name, features); 28 if (newWindow && newWindow.focus) newWindow.focus(); 29 } 30 31 document.addEventListener( 32 "click", 33 function (e) { 34 var a = e.target.closest("a.popup"); 35 if (!a) return; 36 // Only handle left-click without modifier keys 37 if ( 38 e.defaultPrevented || 39 e.button !== 0 || 40 e.metaKey || 41 e.ctrlKey || 42 e.shiftKey || 43 e.altKey 44 ) 45 return; 46 e.preventDefault(); 47 openPopup(a.href, "share", 600, 460); 48 }, 49 false 50 ); 51})();
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.