Sha256: c090a5745739a71d5ccc022066e97dd8fa1e4207bf28b38f9c5fd14fcda17812
Contents?: true
Size: 517 Bytes
Versions: 165
Compression:
Stored size: 517 Bytes
Contents
$(document).ready(function() { function centeredPopup(url,w,h){ var popupWindow = null; LeftPosition = (screen.width) ? (screen.width-w)/2 : 0; TopPosition = (screen.height) ? (screen.height-h)/2 : 0; settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition; popupWindow = window.open(url,"Share",settings); } $(".rad-popup-window").click(function(event){ event.preventDefault(); var url = $(this).attr("href"); centeredPopup(url, 625, 430) }); });
Version data entries
165 entries across 165 versions & 2 rubygems