function PopupCenter(pageURL, title,w,h) { var left = (window.screen.width/2)-(w/2); var top = (window.screen.height/2)-(h/2); var targetWin = window.open (pageURL, title, 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width='+w+', height='+h+', top='+top+', left='+left); } jQuery(document).ready(function() { var sharingModule,windowWidth; sharingModule = jQuery(".onnet-sharing-module"); if(sharingModule.length > 0) { jQuery(window).scroll(function() { var scrollPosition,scrollPastElement,windowWidth; windowWidth = jQuery(document).width(); scrollPosition = jQuery(this).scrollTop(); scrollPastElement = jQuery(".content").offset().top; if(scrollPosition >= scrollPastElement && windowWidth > 1139) { if(!sharingModule.hasClass('fixed')) { sharingModule.addClass('fixed'); sharingModule.css({ 'left': '-70px' }); sharingModule.animate({ left: '0px' }, 300); } } else { sharingModule.removeClass('fixed'); } }); } }); /* playback timings (ms): LoadShardBlock: 183.328 (3) esindex: 0.012 captures_list: 208.213 CDXLines.iter: 14.76 (3) PetaboxLoader3.datanode: 609.16 (5) exclusion.robots: 0.295 exclusion.robots.policy: 0.274 RedisCDXSource: 5.126 PetaboxLoader3.resolve: 206.905 (2) load_resource: 755.497 */