1+(function(window, $, undefined) { 2 'use strict'; 3 4 var popupCenter = function(url, title, w, h) { 5 // Fixes dual-screen position Most browsers Firefox 6 var dualScreenLeft = window.screenLeft !== undefined ? window.screenLeft : screen.left; 7 var dualScreenTop = window.screenTop !== undefined ? window.screenTop : screen.top; 8 9 var width = window.innerWidth ? window.innerWidth : document.documentElement.clientWidth ? document.documentElement.clientWidth : screen.width; 10 var height = window.innerHeight ? window.innerHeight : document.documentElement.clientHeight ? document.documentElement.clientHeight : screen.height; 11 12 var left = ((width / 2) - (w / 2)) + dualScreenLeft; 13 var top = ((height / 3) - (h / 3)) + dualScreenTop; 14 15 var newWindow = window.open(url, title, 'scrollbars=yes, width=' + w + ', height=' + h + ', top=' + top + ', left=' + left); 16 17 // Puts focus on the newWindow 18 if (newWindow && newWindow.focus) { 19 newWindow.focus(); 20 } 21 }; 22 23 // init load 24 $(document).ready(function(){ 25 /* 26 * Event listners 27 */ 28 29 try { 30 $(document).on('click', '.rrssb-buttons a.popup', {}, function popUp(e) { 31 var self = $(this); 32 popupCenter(self.attr('href'), self.find('.rrssb-text').html(), 580, 470); 33 e.preventDefault(); 34 }); 35 } 36 catch (e) { // catching this adds partial support for jQuery 1.3 37 } 38 39 }); 40 41})(window, jQuery);
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.