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